Believe this issue is related to install

From: Date: Wed, 19 Jun 2002 20:00:34 +0000
Subject: Believe this issue is related to install
Groups: php.install 
Request: Send a blank email to php-install+get-7396@lists.php.net to get a copy of this message
Running RH 7.2 on 2 servers. 1 box is running with the standard php rpm, the other I compiled/installed the latest greatest php. Using a simple authentication page <code> function isAuthenticated() { global $PHP_AUTH_USER; global $PHP_AUTH_PW; if ($this->authenticated < 0) { if(isset($PHP_AUTH_USER)) { $this->authenticated = $this->validate($PHP_AUTH_USER, $PHP_AUTH_PW); } else { $this->authenticated = 0; } } return $this->authenticated; } function validate($user, $passwd) { if (strlen(trim($user)) > 0 && strlen(trim($passwd)) > 0) { if (($user == "123" && $passwd == "123"))$ { return 1; } } return 0; } </code> This pops up a quick authentication box and requires the login name and pass to both be 123. Now with the server running the PHP rpm this works fine... The server that I just compiled PHP on does not... (Register globals is turned ON, which is what I thought the prob was). Am I missing something when compiling PHP to miss these types of variable passes?? Thanks, JT

« previous php.install (#7396) next »