PHP register_globals disabled? Help!
Print 
PDF 

Within our PHP configuration we have the register_globals function disabled on all of our servers as it can pose an unnecessary security risk having it enabled. While in our opinion all scripts should be coded in a way that does not require require register_globals to be enabled some scripts which do not take security as seriously still require this function to be enabled.

When trying to run a script that requires register_globals it will likely throw up an error something like this -

Quote:
Getting Error: FATAL ERROR: register_globals is disabled in php.ini, please enable it!
If you require register_globals to be enabled simply create a .htaccess file within the directory where the script is located and place the following contents within -
Quote:
<IfModule mod_php4.c>
php_value register_globals 1
</IfModule>
As noted above we strongly advise against enabling register_globals unless absolutely necessary but the option is there if you need it. Most well developed scripts do not require register_globals to work. You would be best looking for a script which doesn't require it. When coding your own scripts please code them to work without register_globals.

 

0% of 0 voters found this FAQ useful,  I found this FAQ  useful useful  not useful not useful
< Prev   Next >