This is a discussion on How To Enable register_globals in PHP within the HowTo Tutorials for web hosting forums, part of the Virtual Hosting Forums category; Many web applications developed using PHP were created requiring that a certain php setting called register_globals be turned on, as ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| ||||
| ||||
| Many web applications developed using PHP were created requiring that a certain php setting called register_globals be turned on, as PHP installed on servers came with this on by default. PHP developers and web hosts quickly realized that having this setting on by default has several major security implications and started changing their settings to have register_globals off. The immediate effect was increased security, but a ton of broken php web applications. If your site ran one of these applications, you were now the proud owner of a web site that no longer worked. In addition, you could no longer use any application that required that register_globals be on. Luckily there is a simple solution to the problem in most cases, at least until an alternate web application or a patch for your site to run with register_globals off can be installed. First check to see if you have what is called a .htaccess file in your web sites main directory (usually public_html or httpdocs). Either check for this file with your web host provided file manager or use your FTP client to login to your account and check. Note: Some servers hide files with a period in front of them, so you may need to configure your FTP client to see these hidden files. See your FTP client help file for instructions on how to view hidden files. If you locate the .htaccess file, edit it and add this to the very top of the file: Code: php_value register_globals 1 If you do not already have a .htaccess file in your public_html or httpdocs directory follow these simple instructions:
__________________ Michael Sasek AABox Staff |