Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Reply
 
Thread Tools
  #1  
Old 05-07-2009, 03:15 AM
kemal kemal is offline
Hatchling Croc
 
Join Date: Nov 2008
Posts: 4
Exclamation register_globals off only in one directory

Hi,
I need to install drupal for my second website. Main website is based on oscommerce. How can I register_globals disable for only that directory.
regards

Reply With Quote
  #2  
Old 05-07-2009, 09:18 PM
whiplashdps whiplashdps is offline
Baby Croc
 
Join Date: Nov 2008
Posts: 54
Default Re: register_globals off only in one directory

I would have some one else pipe in and confirm this but.. I think you create a new php.ini file in the directory you want to control and put the proper commands (or functions.. whatever they are called) in the newly created file.
__________________
Mik
----------------------------------------------------------------------
Whiplash Design And Print Service
Affordable Printing and Design for Small Business
Reply With Quote
  #3  
Old 05-07-2009, 09:40 PM
regentronique's Avatar
regentronique regentronique is offline
King Croc
 
Join Date: Aug 2007
Location: Quebec,Canada
Posts: 969
Default Re: register_globals off only in one directory

Quote:
Originally Posted by whiplashdps View Post
I would have some one else pipe in and confirm this but.. I think you create a new php.ini file in the directory you want to control and put the proper commands (or functions.. whatever they are called) in the newly created file.
You are absolutely right. Just put this line in your php.ini :

PHP Code:
register_globals=Off 
Reply With Quote
Reply

Bookmarks

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto: php.ini, and register_globals GatorEricS Shared Hosting Support 3 11-25-2010 04:28 AM
PHP setting register_globals Lail Shared Hosting Support 3 12-15-2008 07:57 PM
[Open] Register_globals = ON ? Archertech Shared Hosting Support 14 07-28-2004 02:13 AM

All times are GMT -5. The time now is 03:15 AM.