[Advanced] How to Change the register_globals

ARTICLE FOR ADVANCED USERS

register_globals is a setting of the PHP programming language that allows the execution of scripts written in a slightly unsecure fashion, so as to accept any variable sent via an online form, directly with that variable's name.

Please note that activating this parameter can cause security risks if the script is not secure

By default, this parameter is deactivated. It can, however, be activated with the following steps:

  1. Connect to your account either via FTP, SSH, or via the File Manager in the cPanel.
  2. Browse to the folder containing the script.
  3. Create a file called php.ini containing the following line: register_globals = On;
  4. Save the file. Repeat these steps in every folder that includes a script requiring this feature.

That's it!

 

Article ID: #HC5021

Was this answer helpful?