I've tried both methods without success.
header("Location: http://(user):(pass)@www.mysite.com"); does the transfer
but I still get prompted for a username and password by Apache
readfile("http://(user):(pass)@www.mysite.com"); brings a warning message.
Warning: readfile("http://...@;www.mysite.com/") - Success in
redirect.php on line 2
It's a warning but says Success?
On Mon, 4 Nov 2002, Chris Shiflett wrote:
> You can "hide" URLs by fetching them with one of your own PHP scripts:
> <base href="www.site.com">
> I think it might be at least better than frames. :-)
> silver wrote:
> >you could use this URL syntax:
> >http://user:password@;www.site.com to automatically log your user in to the
> >htaccess protected area. the bad thing about it is that user / password show
> >up in the URL, but you could hide this information with using frames...
> >are PHP/MySQL usernames + passwords the same like in Apache/HTTP?
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php