Page 1 of 1

http authentication problem

Posted: Mon Sep 05, 2005 10:48 am
by jwalsh
Hi,

I've got our admin panel secured using HTTP Authentication. I need to include files that are in the same protected folder, but I get...

HTTP/1.1 401 Authorization Required in /home/noumcweb/public_html/Web/Internal/test.php on line 3

How do I get past this?

Josh

Posted: Tue Sep 06, 2005 2:06 pm
by jwalsh
I'm still stumped on this. I'm assuming I need to pass the right header to the page, but how?

Thanks again,

Josh

Re: http authentication problem

Posted: Mon Sep 26, 2005 10:23 am
by shiflett
jwalsh wrote:I've got our admin panel secured using HTTP Authentication. I need to include files that are in the same protected folder
HTTP authentication only protects resources requested with HTTP. You can include files by just specifying the path on the filesystem. See here for more information:

http://php.net/include

Hope that helps.

Posted: Mon Sep 26, 2005 4:47 pm
by pickle
What is line 3? If you're using file() or file_get_contents() and you're passing it a URL, that error message makes sense. If you're just calling include() though, that error doesn't make sense. Could you post the first few lines of your code?