> Just one question, is there any way that when a person logs in via the
> htaccess popup that i can know via my php script...and can i also get
his
> username?

Have you read the chapter on HTTP Authentication? No. Read the very
first paragraph:

"The HTTP Authentication hooks in PHP are only available when it is
running as an Apache module and is hence not available in the CGI
version. In an Apache module PHP script, it is possible to use the
header() function to send an "Authentication Required" message to the
client browser causing it to pop up a Username/Password input window.
Once the user has filled in a username and a password, the URL
containing the PHP script will be called again with the predefined
variables PHP_AUTH_USER, PHP_AUTH_PW, and AUTH_TYPE set to the user
name, password and authentication type respectively. These predefined
variables are found in the $_SERVER and $HTTP_SERVER_VARS arrays. Only
"Basic" authentication is supported. See the header() function for more
information."

You're welcome.

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to