note 9873 added to HTTP authentication with PHP

From: Date: Tue, 28 Nov 2000 22:00:46 +0000
Subject: note 9873 added to HTTP authentication with PHP
Groups: php.notes 
Request: Send a blank email to php-notes+get-8211@lists.php.net to get a copy of this message
When calling in a function and using the $PHP_AUTH_USER and $PHP_AUTH_PW against mysql connect I found I needed to omit the isset call and just do: if(!$PHP_AUTH_USER or !$PHP_AUTH_PW). Otherwise the mysql_connect('host',$PHP_AUTH_USER,$PHP_AUTH_PW) call returns a value. Also, in the checking for mysql_connect return value, I need to include the auth headers again to get things working as expected. http://www.php.net/manual/features.http-auth.php

« previous php.notes (#8211) next »