The .htaccess file may also be used to specify PHP ini configuration settings.
For example:
When the following is placed in a file called ".htaccess" the PHP scripts contained in the same directory as the ".htaccess" file will execute with the configuration changes specified in the file.
Code:
AddType application/x-httpd-php .html
php_value register_globals 0
php_value error_reporting 0
php_flag expose_php off
php_value session.gc_probability 75
php_value arg_separator.output &
php_value arg_separator.input &;
.html files will be parsed by the PHP interpreter, register_globals will be turned off, error_reporting will be turned off.. etc.
Regards,
Rich
::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::