gardan06 Posted August 29, 2006 Share Posted August 29, 2006 im trying to create a file using fopen, but i get this error:[quote]Warning: fopen(userfeed12.txt): failed to open stream: Permission denied in /site/file.php on line 4[/quote]id really appreciate the help. thanks. Quote Link to comment https://forums.phpfreaks.com/topic/19036-problem-with-fopen/ Share on other sites More sharing options...
hitman6003 Posted August 29, 2006 Share Posted August 29, 2006 it means that the directory doesn't have proper permissions to create files Quote Link to comment https://forums.phpfreaks.com/topic/19036-problem-with-fopen/#findComment-82312 Share on other sites More sharing options...
gardan06 Posted August 29, 2006 Author Share Posted August 29, 2006 i checked the directory of the folder im working on, and the permissions are set to 777 though. Quote Link to comment https://forums.phpfreaks.com/topic/19036-problem-with-fopen/#findComment-82333 Share on other sites More sharing options...
wildteen88 Posted August 29, 2006 Share Posted August 29, 2006 Whats the permissions for userfeed12.txt? Quote Link to comment https://forums.phpfreaks.com/topic/19036-problem-with-fopen/#findComment-82345 Share on other sites More sharing options...
gardan06 Posted August 29, 2006 Author Share Posted August 29, 2006 well, im going to create that txt file named "userfeed12.txt", but that's the problem. file.php wont let me create that txt file.. Quote Link to comment https://forums.phpfreaks.com/topic/19036-problem-with-fopen/#findComment-82356 Share on other sites More sharing options...
gardan06 Posted August 29, 2006 Author Share Posted August 29, 2006 i know that the problem is with the permissions, but its weird that both file.php and the directory its in have both 0777 in their permission but somehow, it still wont allow me to make a new file from it. Quote Link to comment https://forums.phpfreaks.com/topic/19036-problem-with-fopen/#findComment-82379 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.