PHP Setting change, register_globals and more using htaccess


In order to change your PHP  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)

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

One Response to “PHP Setting change, register_globals and more using htaccess”

  1. Hiya, I am really glad I’ve found this information. Nowadays web owners publish only about gossips and net this is actually irritating. An effective site with exciting content, that’s some tips i need.
    Thank you to hold this web page, I’ll be visiting it. Happens newsletters? Can not realize its.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: