Register Globals On

If you run a script that requires php "register globals on" create a php.ini file and include the following:

register_globals = 1

Save the file and upload it to the directory of the script that requires register globals on. If the script requires it in multiple directories you can upload your php.ini to those directories as well.

If that does not function for the script create or modify your .htaccess file to include the following:

php_flag register_globals On

Save the file and upload it to the directory of the script that requires register globals on.

Note: This feature is no longer supported by PHP versions 5.3 and above.

Share this page:


Was this article useful? Have any suggestions or improvements to the information?

Also Read

403 Forbidden error with Drupal after install.

Remove the following lines from the .htaccess file... Options -Indexes Options FollowSymLinks...

Premature end of script headers

If you receive an Internal Server Error 500 and checking your log files displays "Premature end...

HTTP Authentication error in PHP

Issues with HTTP Authentication error in PHP. Variables $_SERVER['PHP_AUTH_USER'] and...

How to Disable XCache for a Domain

On many of our servers xcache is use as part of the php caching mechanism. If you are...

Warning: system() has been disabled for security reasons

system is a feature of php which is disabled by default. To change this if needed for a...