Knowledgebase: Programming Questions
How to Disable Register_Globals in Linux PHP
Posted by Tan Fang Wai (Import) on 13 March 2008 07:49 AM
For our Linux shared hosting, PHP is by default register_globals ON. Sometimes scripts may require that variable to be off. This cannot be done by changing the server php.ini as everyone would be affected. One way is to create a .htaccess file in the root directory of your domain and add in this line

php_flag register_globals off

This should disabled register_globals for your domain
(684 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako Resolve