denoteone Posted March 18, 2009 Share Posted March 18, 2009 i am trying to write to a file but I am getting this from my error reporting. Warning: fopen(drop.txt) [function.fopen]: failed to open stream: Permission denied in /var/www/html/gettingyourdata.php on line 12 Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/gettingyourdata.php on line 13 Link to comment https://forums.phpfreaks.com/topic/149997-solved-fopen/ Share on other sites More sharing options...
drisate Posted March 18, 2009 Share Posted March 18, 2009 chomode your file ;-) Link to comment https://forums.phpfreaks.com/topic/149997-solved-fopen/#findComment-787743 Share on other sites More sharing options...
denoteone Posted March 18, 2009 Author Share Posted March 18, 2009 well the file is not on the server i want it to create the file if it is not there and if it is i want it to overwrite it. Link to comment https://forums.phpfreaks.com/topic/149997-solved-fopen/#findComment-787746 Share on other sites More sharing options...
denoteone Posted March 18, 2009 Author Share Posted March 18, 2009 here is my code to writ to the file. $fp = fopen("drop.xml", "a"); fwrite($fp, $feed); Link to comment https://forums.phpfreaks.com/topic/149997-solved-fopen/#findComment-787761 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.