Re: [PHP] Why my $SERVER_NAME variable is not working anymore?
Gabriel Schillaci wrote: Hi. 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 -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Why my $SERVER_NAME variable is not working anymore?
John Nichel wrote: Gabriel Schillaci wrote: Hi. 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 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.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Why my $SERVER_NAME variable is not working anymore?
Thanks John for your quick answer. What I'm looking for is for a miraculous way to convert or adapt my existing code. I already detected where are each one of my lost variables. I just want to know if the only way I have is to manually replace every old variable by the new one. Hope not. Gabriel - Original Message - From: John Nichel [EMAIL PROTECTED] To: Gabriel Schillaci [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, February 05, 2004 12:55 AM Subject: Re: [PHP] Why my $SERVER_NAME variable is not working anymore? Gabriel Schillaci wrote: Hi. 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 -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Why my $SERVER_NAME variable is not working anymore?
Gabriel Schillaci wrote: Thanks John for your quick answer. What I'm looking for is for a miraculous way to convert or adapt my existing code. I already detected where are each one of my lost variables. I just want to know if the only way I have is to manually replace every old variable by the new one. Hope not. Gabriel You can turn 'register_globals' on in the php.ini, but it would be better to leave it off, and change your code. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Why my $SERVER_NAME variable is not working anymore?
Gabriel Schillaci wrote: It is already set to ON, but still getting the same message, and other messages such as: Notice: Undefined variable xxx This is another kind of error I started to receive since we moved from Linux/php 4.2.x to Win/php 4.3.x Until 4.2.x, this code was good for php parser: if ($a=='something') ... But now, php 4.3.x says that $a is undefined, and is forcing me to declare/make use of a variable before I can mention it. $a=''; if ($a=='something') Please reply to the list, and not just me. That way, when someone else who has this problem will be able to search it in the archives. Okay, this is the error reporting level. In the php.ini you can set 'error_reporting' to E_ALL ~E_NOTICE to get rid of the warnings, or you can turn 'display_errors' to Off (restart of web server needed for the changes to take effect). Of course, it's still better to write your code to where you don't get these warnnings. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php