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
http authentication problem
Moderator: General Moderators
Re: http authentication problem
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: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://php.net/include
Hope that helps.
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?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.