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 | |
|
Comments (0)