Couldn't you use something like this:
header("Location: http://user:[EMAIL PROTECTED]/path/to/file.php");
---John Holmes...
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 25, 2002 11:11 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] authorization headers
>
> does anybody know how to pass the correct username and password as a
> header
> to a directory with an .htaccess file.
>
> i tried
>
> header("Authorization: Basic username:password");
>
> like that and also where the username:password was base 64 encoded and
> it
> isn't working.
>
> thanks.
>
>
> --
> 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