Jump to content

need help with fopen() and fwrite()..pleeeease


mercuryfenix

Recommended Posts

I've been playing around with the chmod() but I am going in circles. My last post got bumped down too far and nobody is responding.

 

I am getting the following error with this code:

Warning: fopen(rss.xml) [function.fopen]: failed to open stream: Permission denied in /rss/update_rss.php on line 31

 

Warning: fwrite(): supplied argument is not a valid stream resource in /rss/update_rss.php on line 32

 

Warning: fclose(): supplied argument is not a valid stream resource in /rss/update_rss.php on line 33

 

$path="rss.xml";
$file_name=fopen($path,"w");
fwrite($file_name,$body);
fclose($file_name);
?>

Link to comment
https://forums.phpfreaks.com/topic/62936-need-help-with-fopen-and-fwritepleeeease/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.