On Tuesday 30 November 2004 14:13, Jeffery Fernandez wrote: > Is it possible for me to store the username password credentials within > the php page and pass that across via headers to authenticate the page > for viewing the stats. The main purpose is to make the webstats > transparent to the admin user so they don't have to enter any > username/password. You can use something like: $doo = file_get_contents('http://user:pass@xxxxxxxxxxxxxxx/secure-page.html'); echo $doo; This should work fine if there no further interaction on secure-page.html, however if secure-page.html allows the user to interact with it you would have to intercept and interpret those interactions so that you can forward them appropriately. > I tried putting the username:password@domain into the > url of an iframe page(session controlled) but stupid IE spits the > authentication as a pop-up (login window). Hope I have explained well > enough. I believe this behaviour/functionality was removed in response to the spate of phishing epidemics. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* No man is useless who has a friend, and if we are loved we are indispensable. -- Robert Louis Stevenson */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php