I have a site that uses .htaccess to password protect directories.
Does anyone know how I can use PHP to grab the user's login? I want to track who posts what to a database and need to grab their username in order to do so.
Thanks. Rob
if you are running PHP as an Apache module then look in $_SERVER['PHP_AUTH_USER']