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 Quote Link to comment Share on other sites More sharing options...
drisate Posted March 18, 2009 Share Posted March 18, 2009 chomode your file ;-) Quote Link to comment 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. Quote Link to comment 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); Quote Link to comment 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.