Jump to content

open a new file


xbl1

Recommended Posts

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

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

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
Hi 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...