icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Search Me! » [Article] Register Globals

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.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old March 13th, 2008, 6:04 PM   #1 (permalink)
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
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:
php_flag register_globals on 
Step 2: Add php.ini File
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:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
ImportantYou must use this file or ;;;;
;
variation thereof if you have phpsuexec;;;;
;
running on your server                 ;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;
Insert this file into the directory of your
;choice where you'd like 'register_globals
;to be turned on.
register_globals=on 
Step 3: A Caution
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.
__________________
Roxanne


Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On