| Search Me! Lots of information is found in this board. You can also ask general questions here if you'd like! This is the last stop on Surmunity. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
URB4N 5K1LLZ
Super #1
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,660 posts
Gave thanks: 81
Thanked 128 times
|
[Article] Register Globals
How can I turn on register_globals?
Now, all new Surpass Servers are set to register_globals=off by default. However, you can still turn on register_globals for your own website. This is very simple and will be explained in the steps to follow. To turn on registers_globals we will make use of the following file-types: * .htaccess * php.ini Step 1: Edit .htaccess First let us begin with the .htaccess file. This step does not require you to be very familiar with htaccess so we shall proceed. * Add the following line to your .htaccess file (this file can be found in your public_html folder... example: yourdomain.com/.htaccess): PHP Code:
Important: Only apply the following instructions to the directory of choice within your website. For example: if you only want register_globals enabled in yourdomain.com/production/process/ ... then only apply the following directions to the process folder. * Add the following php.ini file to the directory of choice: Assuming that you have phpsuexec running on your server then you will need to complete this step. Otherwise your browser will return a 500 error. If you are unsure how to create a php.ini file, no worries, here it is for you pre-made: php.ini PHP Code:
Surpass Hosting has decided to have register_globals set to off as a default for a reason. When register_globals is enabled it opens the door to several exploits that can be carried out through injection methods which can easily render your data compromised. You have been forewarned. |
|
|
|