Re: User authentication

From: Date: Thu, 09 Aug 2001 20:38:04 +0000
Subject: Re: User authentication
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-62086@lists.php.net to get a copy of this message
> I set up a user-auth script that checks $PHP_AUTH_USER & $PHP_AUTH_PW > against a db with login/pwd information, but on the server my site is hosted > this doens't work because PHP runns as cgi. > > How do I do this with PHP running as a cgi? You can't. You'll have to either: Re-code it to get different variables in a web FORM. Not use PHP at all, and use mod_auth_mysql Use .htaccess instead of PHP (only suitable for small # of users, probably) I think it's a security issue that you'd be passing the username/password from Apache to the CGI in an insecure manner... Don't quote me on that though. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#62086) next »