Notes on Java, Solaris, PHP, LDAP…

April 9, 2008

How to set PHP values in .htaccess

Filed under: Java — negev @ 4:30 pm
Tags: ,

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

Advertisements

2 Comments »

  1. […] 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… – https://negev.wordpress.com […]

    Pingback by LDAP Training School » Blog Archive » ldap examples [2008-04-09 17:50:43] — April 9, 2008 @ 6:10 pm | Reply

  2. http://www.php.net/error_reporting

    Comment by bof — November 4, 2008 @ 1:20 pm | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: