Override default php.ini configuration
If there is a need to over-ride the default PHP configuration set by your web host, you can do so by editing the .htaccess file in the root. The main reason I needed this was to increase file upload sizes from the default 2MB. The code is as follows:
# php.ini configuration
# via htaccess
php_value post_max_size 20971520
php_value upload_max_filesize 20971520
php_flag magic_quotes_gpc off
php_flag register_globals on
php_value session.use_trans_sid 0
For this trick to work though, AllowOverride must be turned on, and this will only work on UNIX systems.
Leave a Comment
Your Comment