How to Disable Globals on HostGator

HostGator is a web hosting company that provides services such as shared hosting, virtual private server hosting (VPS), reseller hosting and dedicated server hosting. HostGator supports server-side scripting languages including PHP, for Linux-based web servers, and ASP.NET, for Windows-based web servers. The "php.ini" file is a configuration file in which you can modify the PHP settings to suit the needs of your website or web application; "register_globals" is a PHP data handling configuration directive used to automatically create global variables for a multitude of server variables. When this feature is enabled, it is considered a security risk, in which case it's best practice to disable it in "php.ini."

Things You'll Need

  • Domain name
  • HostGator hosting account
  • FTP software
Show More

Instructions

    • 1

      Click on the Windows "Start" button, click on "All Programs," click on "Accessories," then click on the "Notepad" shortcut icon. This will open the Microsoft Windows "Notepad" text editor.

    • 2

      Copy the following code into the file, without quotation marks: "register_globals = Off," click on the "File" menu, click on "Save As," change the file type from "Text Documents" to "All Files," change the file save directory to the Windows Desktop, name the file "php.ini," then click on the "Save" button. The file "php.ini" should be present on your Windows Desktop.

    • 3

      Open the FTP application, log into your HostGator hosting account, go to the directory in which you want to disable "Globals," then upload the "php.ini" file into this directory. Wait for the upload process to complete, which should take a few seconds.

Related Searches:

References

Comments

Related Ads

Featured