I want to read the file say 'http://www.mywebserver.com/private/this.txt' into PHP and then parse it and print out the results.
My question is this:- the directory /private is protected with htaccess, I'm assuming that this will stop me calling the file as the user is not authenticated, is there any way round this, say by posting the username and password to the server in question in the php request?
I can't find anything on this so any help would be much appreciated, even if it's to say it can't be done.
P.S. the php script and the file in question might well not be on the same server.
Thanks