Why is register_globals off ? How can I turn php directive register_globals On ?
For security reasons, and to enforce good coding and script design, on all shared-hosting (virtual hosting) servers, the PHP setting
register_globals = Off If you really require register_globals = On which is NOT ADVISED, you should instead set it to on in your local .htaccess or fix the poor coding in your application/script(s) that require the setting On.
The register_globals directive is off by default as of PHP 4.2.0 for a reason !
As you're still reading you obvioulsy feel you muct have the seeting on so ...
create (or modify) your .htaccess file in the appropriate web directory with:
php_value register_globals 1For more information, please see http://www.php.net/security.registerglobals
To learn the correct methods for using external variables please see http://www.php.net/variables.external
Add to Favourites Print this Article