Jump to content


Photo

problem with fopen()


  • Please log in to reply
5 replies to this topic

#1 gardan06

gardan06
  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 29 August 2006 - 04:32 PM

im trying to create a file using fopen, but i get this error:

Warning: fopen(userfeed12.txt): failed to open stream: Permission denied in /site/file.php on line 4


id really appreciate the help. thanks.

#2 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 29 August 2006 - 04:45 PM

it means that the directory doesn't have proper permissions to create files

#3 gardan06

gardan06
  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 29 August 2006 - 05:27 PM

i checked the directory of the folder im working on, and the permissions are set to 777 though.

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 29 August 2006 - 05:48 PM

Whats the permissions for userfeed12.txt?

#5 gardan06

gardan06
  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 29 August 2006 - 06:08 PM

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

#6 gardan06

gardan06
  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 29 August 2006 - 06:55 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users