Enable/Disable PHP register_globals Print
- 609
----------------------
You can learn more on what Register Globals is by using the link below:
http://us2.php.net/register_globals
For those wishing to turn on or turn off PHP register_globals, you can edit files within your account to set this setting locally. Depending on if the machine you are on is using PHPSUEXEC or not will determine which method you use.
For NON-PHPsuexec servers:
1) Using a file manager from cPanel or FTP: locate the ".htaccess" file located in each directory.
*NOTE* If you want this setting for your entire site, edit the .htaccess in public_html if not, edit the .htaccess file within the folder you want it for.
2) Once you have this file opened with an editor, add the below line onto a new line in the file:
php_flag register_globals off
(Change it to On to turn it on)
3) Save the file, and your done!
For PHPsuexec servers:
1) Using a file manager from cPanel or FTP: Create a file named "php.ini" in the directory of your choice or in "public_html" for your entire site.
2) Now open it with a text editor and add the following line:
register_globals = Off
(Change to On if you want this enabled)
3) Now save the file, and your done!
This process can be followed for many other similar php settings. Bear in mind that for a phpsuexec file, a local php.ini file only affects the directory that it's directly put in. Subdirectories are not affected.
Was this answer helpful?
Related Articles
Does Htech-solutions.com allow adult sites on their network?
Proclanhosting.com does not allow adult websites on our shared servers. This can be reviewed in...
What can I do if I didnt receive my welcome email?
When new accounts are created, clients will receive a welcome e-mail that explains the details of...
What is the difference between add on domains and a reseller account?
An add on domain is a domain that you can "add on" to your existing hosting account,...
Can I upgrade my plan at anytime?
You can upgrade to any plan that you would like at any time you wish. All of our solutions are...
How can I upgrade my plan?
Please submit a ticket and you will be provided with new payment links that require you to create...