newbtophp Posted August 13, 2009 Share Posted August 13, 2009 I was wondering is their a way i can make the text.txt file execute when using fopen, but when i visit the file directorally it will display a forbidden message? I've tried chmodding, the forbidden message displays but fopen wont work This is my code: //I want the url to be forbidden, so vistors can't access directaly $url="http://domain.com/text.txt"; //But the trouble is if i chmod the above file the below code wont work $fp = fopen($url, "r"); All help is apreciated Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.