Question:
How can I turn off register_globals ?
Answer:
The method of turning of register_globals depends upon how you are running php. If you are using the default mod_php create a .htaccess file in your www directory and add the line :
php_flag register_globals off
You can also create multiple .htaccess files inside of different directories
and change the status of register_globals for different parts of your site.
If you are using one of the php-cgi versions, .htaccess will not work. Instead, create a directory called :
etc
in your home directory
and place a custom php.ini file in it. Inside the php.ini file, set register_globals to off.