[PHP] Re: http authentication through PHP

2004-01-10 Thread Manuel Lemos
Hello, On 01/10/2004 06:01 PM, Scott Taylor wrote: What is the easiest way to access a page that is protected by HTTP basic authentication through PHP? In other words, I have a PHP page that will get the username and password off a database and will then login through HTTP authentication to

[PHP] Re: HTTP Authentication thru PHP

2003-11-19 Thread pete M
its probably because its possible to authenticate with an url ? eg http://name:[EMAIL PROTECTED] Chandu Nannapaneni wrote: hello all , I'm able to get successfully http authenticated from my php scripts Ex : $header = POST /myscript.php HTTP/1.0\r\nAuthorization: Basic ; $header .=

[PHP] Re: HTTP Authentication thru PHP

2003-11-19 Thread Manuel Lemos
Hello, On 11/19/2003 12:30 PM, Chandu Nannapaneni wrote: hello all , I'm able to get successfully http authenticated from my php scripts Ex : $header = POST /myscript.php HTTP/1.0\r\nAuthorization: Basic ; $header .= base64_encode($username:$password).\r\n; $header .= Content-type:

[PHP] Re: HTTP Authentication and PHP

2001-07-23 Thread elias
Try this when you want to logout: ? header( 'WWW-Authenticate: Basic realm=Private'); header( 'HTTP/1.0 401 Unauthorized' ); ? //elias Jason Rennie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I've been playing around with PHP authentication via

[PHP] Re: HTTP Authentication and PHP

2001-07-23 Thread Balaji Ankem
Hi, I am attaching one example program. I hope this will help you a lot. Regards -Balaji Hi all, I've been playing around with PHP authentication via HTTP. I'm using apache, and when i use the header('WWW_Auth...) headers i get a username/password dialog pop up (as i wanted). How do i