How can I enable Register Globals?
There are 3 methods —
1st : Enable on complete Server.
Code :
php -i | grep php.ini
This will give you exact path of php.ini file
Edit php.ini file — set
register_globals on
2nd : Enable on particular domain or folder using .htaccess
If you don’t want to turn Register Globals on for your whole server or don’t have access to as you are a reseller then you can enable them just on the particular folder and all subfolders below it. To do this, simply put the following line into a text file and save it as “.htaccess”. Then upload it to that folder.
php_value register_globals on
3rd : If .htacess fails
Sometimes, the .htaccess method will not work on your server and you’ll get an Internal Server Error message after trying that. In the event of this, you can try using a php.ini file. To do this, create a file named “php.ini” and insert the following line:
register_globals=On
Then upload the php.ini file to the folder for which you wish to enable register globals.









