Sometimes I need to set PHP values in .htaccess. And when I forgot that it’s php_flag statement, then I found nice examples of it at http://support.easystreet.com/hosting/unix/dynamic-config.htm
php_flag display_errors on
# Following disables warning when accessing uninitialized array entries like $_SESSION['user_id']
# 4097 = E_ERROR + E_RECOVERABLE_ERROR
php_value error_reporting 4097
If I need to disable access to a folder, I add this to .htaccess:
Order Deny,Allow
Deny from al
[...] How to set PHP values in .htaccess By negev And when I forgot that it’s php_flag statement, then I found nice examples of it at http://support.easystreet.com/hosting/unix/dynamic-config.htm. php_flag display_errors on # Following disables warning when accessing uninitialized … Notes on Java, Solaris, PHP, LDAP… – http://negev.wordpress.com [...]
Pingback by LDAP Training School » Blog Archive » ldap examples [2008-04-09 17:50:43] — April 9, 2008 @ 6:10 pm |
http://www.php.net/error_reporting
Comment by bof — November 4, 2008 @ 1:20 pm |