The register_globals can be turned on in your php.ini file. To do this, create a php.ini file in the directory you need this to be turned on. Then add the following :
=================
register_globals = On
=================
The php.ini file is a configuration file that the server looks at to see what options have been turned on, off or set to a number different from the defaults that we have set for the server. While the name may seem advanced to those unfamiliar with it, it's simply a text file with the name php.ini
To create a php.ini file, just open up a text editor, add in the lines you need and save the file. You can name the file whatever you wish when saving. Once done, upload the file to the directory where your script is located and then rename it to php.ini.
There is one main difference to the use of .htaccess vs php.ini -- a .htaccess file can be placed in the root directory and affects all subdirectories with just 1 file, php.ini does not work this way. A php.ini file needs to be placed in every directory and subdirectory that requires the altered directives.
Categories
4
Backup/Restore
6 Billing & Accounts
0 CGI - Advanced Webmasters
10 CloudLinux (cPanel)
24 cPanel - Control Panel
2 Cpanel - Features & Functions
11 Databases
48 DirectAdmin
6 DNS - Nameservers
10 Domain Management
17 Email
6 Email Without Mysteries
9 FTP
4 FTP & Uploading Files
16 General Questions
7 Getting Started
6 Installing a Control Panel
8 Mail Filters & SPAM
11 Mobile
3 Others
7 PayPal
9 PHP & MySQL
47 Plesk
10 Security
58 SiteWorx/InterWorx
69 Softaculous
18 SolusVM
5 SSL
21 Technical Support
19 Virtualizor
18 WHM
17 WordPress
Categories
Knowledgebase
- Home
- Knowledgebase
- PHP & MySQL
- How to turn on register_globals
- 318 Users Found This Useful
Related Articles
Change TimeZone
scripts to use EST or any other timezone you need by the following methods : 1) Using the...
I need PHP5 for my scripts, but the server has PHP4 installed only. Please upgrade PHP.
We already have PHP5 running in our servers. It has been compiled with all the options in...
Do you support PHP Suexec?
Yes, we do support it.
Do you support FormMail.php?
Yes, we support FormMail.php. We do not have it in our cgi-bin so you need to install it on your...