• Your Cart is Empty
  • Cart
  • Log In

How to enable/disable the register_globals

How to enable/disable the register_globals using the php.ini file

You will be able to complete this procedure in a few quick steps:

1. First you will need to log into your web hosting Control Panel. This is done by clicking the Control Panel log-in link located in the top right corner of the page. Next enter your login details in the username and password fields of the Members Area Login form. Click the Login button to go straight to your Control Panel.

2. Next click on the File Manager icon located in the Site Management section. This is where you can control the register_globals from.

3. Once in the File Manager of your Control Panel - you will see a table listing all hosts and folders for each one of them containing the hosts' files. For the purposes of this tutorial, we need to go to the Home directory of your File Manager. To do that, simply click on the /home link located above the table of hosts.To modify the registry_globals in the php.ini file you will need to go to the System folder.

3.1. Next select the folder of the PHP version you are currently using with your account. You can check your current PHP version in the PHP Settings section of the Control Panel. For this particular account we need to select the php5 folder, the currently used PHP version.

Opening the folder you will see a php.ini file and a php.ini_bak file. The file you need is php.ini. The other one - php.ini_bak is a backup file. To modify the php.ini file - click on its corresponding Edit icon.

3.2. From the pop-up tooltip select the Open with plain text editor option to open the php.ini file editor. The php.ini file contains all basic PHP settings for your account.

If you are now sure what exactly you need to change, please contact our Support Team first.Since the file is too big you could use the Search function of your browser to find the necessary block of text.

3.3. Type 'register_globals' in the Search field of the browser to find the necessary line. Remember the line we need to change does not start with ';'. Lines starting with ';' are commented and will not be executed.

3.4. Once you find the necessary register_globals line - you simply need to change the ON or OFF value in its statement, depending on what you want to do. Type ON if you wish to enable the register_globals and OFF in case you want to disable them.

Once you are done with any changes to the register_globals in your php.ini file - click on the Save and Close button. All changes will take effect on the server within the next 10 minutes.

You now know how to change the register_globals settings by modifying the php.ini file of your current PHP version.