Hello everyone _
I am trying to include a file in a webpage that is in an HTTP protected directory. The include file I am trying to include is also in the same HTTP protected directory... except when I include the file I get a 401 protected directory error. Is there anyway I can get around this?
Thank you =) Alexisa
may be able to include this using a http type include with username/pass attached
include('username:pass@[url]http://somewhere.com/file.php[/url]');
Never tried it, so I'm just guessing here...
Thank you for the idea, but unfortunatly it didn't work =/
Hmm... Interesting problem.
Have you tried using fopen() to see if you could read it? I'd predict you'd get a more useful error from fopen().
I'm guessing the root of the problem is the user PHP is running as doesn't have enough permissions to read the directory.
Actually, it was my own fault, Thanks for your help though
I kept calling the page like: include('http://whatever.come/whatever.php');
instead of using the local way include('whatever.php');
Needless to say it works now