Go Back   HostGator Peer Support Forums > HostGator Announcements > Network Status

Notices

Reply
 
Thread Tools
  #1  
Old 03-07-2008, 03:17 PM
CathInfo CathInfo is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 16
Default How can I enable register_globals on PHP5?

I actually think I might have done it successfully with a PHP.ini file, uploaded to the main directory. I heard you need one in EVERY DIRECTORY where PHP scripts are found.

Anyhow, it was confirmed by php_info() that I turned that important item on.

However, my website does NOT act as if it's on.

I got my old "phpShop" (0.6.1) site working in XAMPP -- which uses Apache 2.X, PHP5, and MySQL5 -- on my Windows XP machine. Same code, same settings. The only difference is that you are still using Apache 1.X and XAMPP uses Apache 2.X.

I think you guys should have gone "all the way" if you're going to bother.

But here's my question. Didn't I hear somewhere that problems like the one I'm having are normal? In other words, if you're going to go with PHP5, etc. then by all means go with Apache 2, otherwise stick with Apache 1?

I wonder what in Apache 1 is breaking my site?



Matthew
Reply With Quote
  #2  
Old 03-11-2008, 10:55 AM
CathInfo CathInfo is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 16
Default Re: How can I enable register_globals on PHP5?

This must be a hard question -- not that I'm surprised! It sure seems difficult to me.

Matthew
Reply With Quote
  #3  
Old 03-11-2008, 12:36 PM
xskripts xskripts is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 1
Default Re: How can I enable register_globals on PHP5?

ini_set('register_globals', 'on');

Place in the top of all pages you want to use register_globals.

I'm new to hostgator I do not know if they allow control environment variables.

Try it and see if not remove the code.
Reply With Quote
  #4  
Old 03-11-2008, 12:58 PM
quietFinn's Avatar
quietFinn quietFinn is offline
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,556
Default Re: How can I enable register_globals on PHP5?

Quote:
Originally Posted by CathInfo View Post

I wonder what in Apache 1 is breaking my site?

Nothing.
If you set register_globals ON in a php.ini file it will be on for PHP scripts in that directory.

Quote:
Originally Posted by CathInfo View Post
Anyhow, it was confirmed by php_info() that I turned that important item on.
So it is ON.
If phpinfo sees it ON why would it be OFF in your code?

Quote:
Originally Posted by CathInfo View Post

However, my website does NOT act as if it's on.
What does this mean?
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #5  
Old 03-12-2008, 12:16 PM
CathInfo CathInfo is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 16
Default Re: How can I enable register_globals on PHP5?

I started a new thread, since this one was poorly constructed, and poorly titled.

Sorry about that.

Here is my much more descriptive thread:
http://forums.hostgator.com/showthread.php?t=29282

Matthew

Last edited by CathInfo; 03-12-2008 at 12:31 PM.
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 Off
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 08:11 AM.