| PHP Settings, register_globals, max upload limit etc using htaccess
|
In order to change your PHP 4 setting, from upload limit to register_globals just do the follow
1) Create a file called .htaccess inside your public_html (Note: if you want to change PHP 5 settings, you need to put these values in a file called php.ini inside the folder of the php files and remove the php_value part)
2) Edit it and add the line below in this format
php_value value_name newvalue
example:
# to turn off register_globals php_value register_globals off
# to change upload size limit to 100mb (Make sure add both lines below into htaccess) php_value upload_max_filesize 100M php_value post_max_size 100M
# to change php script execution time php_value max_execution_time 1000
# to turn mod_rewrite on RewriteEngine on
***YOUTUBE EXAMPLE FOR .HTACCESS***
php_value upload_max_filesize 100M php_value post_max_size 100M php_value output_buffering on php_value max_execution_time 1000 php_value max_input_time 1000 php_value session.gc_maxlifetime 14400
|
Add to Favourites
Print this Article
|
Powered by WHMCompleteSolution
|