Is register_globals disabled?

register_globals (a legacy PHP directive that exposes all GET, POST, cookie and session values as global variables) is disabled by default on Loopia’s PHP hosting. This article explains why register_globals is disabled and shows how to re-enable it for a specific directory on our UNIX servers when a legacy application cannot be modified.

Background on register_globals

You can read more about register_globals at php.net/register_globals.

Due to security issues, register_globals has been disabled by default since PHP 4.2.

Re-enabling register_globals on UNIX servers

If you really need register_globals enabled for your site to work and cannot change the code, there is a way to enable it on our UNIX servers. Create a file named .htaccess in the directory and add the following line:

php_flag register_globals on
Was this article helpful?

Related Articles