Core Coding®

PHP Register Globals

  PHP Register Globals
Use .htaccess to turn on or off PHP Register Globals without editing your php.ini. This is a great way to enable older php scripts to run without making your whole site insecure.
simply create a .htaccess file in the base directory of your web content
or in the directory of the php script you wish to allow or disallow PHP Register Globals.
This is a great way to debug certain scripts without affecting the whole site.

php_flag register_globals on


php_flag register_globals off
Go back to resources
Home Mail Login