Re: Why my $SERVER_NAME variable is not working anymore?
| From: | John Nichel | Date: | Thu, 05 Feb 2004 04:00:33 +0000 |
| Subject: | Re: Why my $SERVER_NAME variable is not working anymore? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-176859@lists.php.net to get a copy of this message | ||
John Nichel wrote:
Gabriel Schillaci wrote:But if you don't want to change all of your code, and open a security hole, you can turn 'register_globals' on in the php.ini -- By-Tor.com It's all about the Rush http://www.by-tor.comHi. This is a stupid question, I know. I'm using my old set of routines well documented and bullet proof. They were working just fine on Win and Linux systems, regardless of webserver of php version, UNTIL php 4.3.x - IIS over Win destroyed my life. Is there something I can do on php.ini file or whatever to fool PHP to keep recognizing the old-style posted and server variables?? Yes, I know that is risky to keep working that way, but the projects I made were so small that its not worth to change all the code just to improve security! Any help will be welcome. Thanks Gabriel PS: I always compared PHP to IBM AS/400 RPG language, bc they share an incredible ROI, but now....Try $_SERVER['SERVER_NAME'] http://us2.php.net/manual/en/language.variables.predefined.php