you script looks (and works) fine. so i dont think the problem is in your script I found firebug/live http headers firefox addons to be helpful in this situation see if your client is actually sending "Authorization Basic" header Kranthi. http://goo.gl/e6t3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php