How to Disable Register_Globals in Linux PHP

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


Was this article helpful?

mood_bad Dislike 0
mood Like 1
visibility Views: 20836