Re: use of undefined constant

From: Date: Thu, 26 Oct 2006 08:21:50 +0000
Subject: Re: use of undefined constant
References: 1 2 3 4  Groups: php.db 
Request: Send a blank email to php-db+get-42600@lists.php.net to get a copy of this message
Hello again, On Thu, 26 Oct 2006, Chris wrote:
You'll need to change: $PHP_AUTH_USER to $_SERVER['PHP_AUTH_USER'] and $PHP_AUTH_PW to $_SERVER['PHP_AUTH_PW'] The former variables are ok before 4.2.0 (where register_globals was off by default I think) but now they have moved to the $_SERVER super-global. Read http://www.php.net/manual/en/language.variables.predefined.php
Thanks a lot again! I am so thankful for your help! It did work. But I have a curious observation. I can only log in when I delete the password and just log in using my login. As soon as I write password with field type PASSWORD or OLD_PASSWORD I am not able to login. Delete the password, and I am back in the program. Now I guess I will need to talk to the person who wrote it for us a couple of years ago because I am not sure what is going on. Presumably as this was written for mysql 3.x something and php 4.0.x so I guess the code has lots of things which may now be incompatible. But again - Chris huge thank you for your help! -- Zbigniew Szalbot

« previous php.db (#42600) next »