M. Sokolewicz wrote: >> Hi ive tried this script and it doesnt seem to work for me. I have typed >> exactly the same username and password in the script..it keeps on asking >> for >> the username and password..pls help...cud this be due to a setting in >> the >> php or apache server...am using php 4.3 and apache 1.3.33...the code is >> >> <?php >> >> if (!isset($PHP_AUTH_USER)) { If you are using PHP with the CGI SAPI, and not as a Module, then HTTP Authentication WILL NOT WORK. You can check this with http://php.net/php_sapi_name or, more generally, http://phpinfo You also may might to use $_SERVER['PHP_AUTH_USER'] if register_globals is "OFF" as it should be. PS You may want to change your code structure so the block that sends the headers out isn't repeated. It makes it rather cumbersome as you have it now... -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php