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)
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
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
RewriteEngine On
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn’t needed,
# but better safe than sorry.
SecFilterScanPOST Off
Thanks for updating new information about php. It helped me a lot to improve my businesses. Practically as a developer you have shared lot of details about php. Also share your new updated details about php. Thanks mate.
ReplyDeletePHP course in Chennai