xbl1 Posted January 12, 2007 Share Posted January 12, 2007 Hello; I am trying to open a new file, but it give me the following massage, could anyone help, please.Warning: fopen(testFile.php) [function.fopen]: failed to open stream: Permission denied in index.php on line 3can't open file<?php$ourFileName = "testFile.php";$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");fclose($ourFileHandle);?> Link to comment Share on other sites More sharing options...
vijay Posted January 12, 2007 Share Posted January 12, 2007 Hi..for that first you have to check that whether this file's directory have ful rights or not..?if not then give 777 by chmod or manually.. then try u will get it..Regards,Vijay Link to comment Share on other sites More sharing options...
xbl1 Posted January 13, 2007 Author Share Posted January 13, 2007 Hi..for that first you have to check that whether this file's directory have ful rights or not..?if not then give 777 by chmod or manually.. then try u will get it..Regards,VijayHi vijay;Thanks for your advice. it works now.i set the permission of the file to 740, then it does work, i am hosting now.Do you think the 740 is enough safty? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now