Server Administration & Management

How to change PHP values using .htaccess

Here is the list of PHP values that you can change using .htaccess

php_flag session.use_trans_sid On

php_flag session.use_only_cookies on

php_flag register_globals On

php_value magic_quotes_runtime On

php_flag magic_quotes_gpc off

php_admin_flag safe_mode Off

php_value post_max_size 2048

php_value upload_max_filesize 15M

php_value max_execution_time 300

php_value magic_quotes_gpc off

php_flag session.bug_compat_warn off

php_value session.use_cookies 1

php_flag session.use_only_cookies 1

March 6, 2011 Posted by | Apache, htaccess | , , | Leave a comment