News Menu
Other News Sources
Controlling PHP Register Globals Using .htaccess File
Published: 4th Mar 2008
Just a quick tip regarding PHP. If you need to override the Register Globals settings in PHP and you don't have access to php.ini then you can typically add a single line to your .htaccess file (or create a .htaccess file and place it in your root web directory)
If you need to turn register_globals on use:
If you need to turn register_globals off use:
If you need to turn register_globals on use:
php_flag register_globals 1If you need to turn register_globals off use:
php_flag register_globals 0Related News Articles / Posts
Recent Recommended Links - October 2008 (03/10/2008)
Controlling PHP Register Globals Using .htaccess File (04/03/2008)
PHP: Include a file and store contents to variable using output buffer (05/06/2007)
PHP Mailer Class - Sending SMTP Email (22/03/2007)
Code Editors (Syntax Highlighting) - Aptana, Crimson Editor, PHP Designer (14/08/2006)
Related Links


