Re: Re: Authentication with PHP and HTTP

From: Date: Tue, 05 Nov 2002 12:20:42 +0000
Subject: Re: Re: Authentication with PHP and HTTP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-122762@lists.php.net to get a copy of this message
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? Ed 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"> > <? > readfile("http://user:password@www.site.com/"); > ?> > > I think it might be at least better than frames. :-) > > Chris > > 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 >

« previous php.general (#122762) next »