From: James E. F. <jf...@ac...> - 2001-11-26 19:19:12
|
Are you using the CGI version of PHP (php.exe), or the SAPI module (php4isapi.dll) version? It appears that HTTP Authentication is not (fully) supported by the CGI version of PHP for IIS. There is more information about this in the PHP docs here: http://www.php.net/manual/en/features.http-auth.php Unfortunately I do not have access to IIS servers to do any testing on. I do all my development and testing on UNIX (FreeBSD to be exact). Perhaps someone who uses Windows+IIS and writes PHP code could take a look at this problem. Marc, is there any chance you could use Apache rather than IIS? -James On Mon, 26 Nov 2001, Hoogerwerf, ir. M.R. wrote: > Dear listers, > > I've been trying to get ESP up and running. I'm almost(?) there but I can't > get rid of the last error messages. > > Here's my set-up: > > Win2K, IIS5.0, php4.0.6, phpESP1.3RC1, mySQL3.23.29a > > I've followed all the instructions in the README file. The database has been > created, a mySQL user has been created, phpESP.sql has been run succesfully > and I've edited all the pathnames to refer to my [install-root] which is > c:\esp > > I tracked down the error messages to the point of > if($ESPCONFIG['auth_design']) { > if(!manage_auth( > in manage.php > > if I hardcode the username, password in the lines above, I succeed getting > access to the management interface. However, when I try to create my first > survey I encounter problems in C:\ESP\admin\include\tab\general.inc on line > 23 > without the hard-coding I receive the following message: > Incorrect User ID or Password, or your account has been disabled. > However, I've established that when I use a hardcoded version of the sql > statement that generates this message, I receive results as expected, i.e. > the user exists in the designer table, he's not disabled and not expired. > My guess is that this line is not working on my machine: > XADDSLASHES(@$HTTP_SERVER_VARS['PHP_AUTH_USER'] > it seems that 'PHP_AUTH_USER' is not an entry in the HTTP_SERVER_VARS array. > However I can't find the place where this entry should have been set. When I > turn on debugging the debugging window doesn't show this entry. > > I'm afraid I'm not a PHP coder so it's hard to find the place where I should > start looking. > > Hope someone can help me out. > > > Marc Hoogerwerf |