Thread: fopen errors
View Single Post
Old 04-08-2008, 03:10 PM   #10 (permalink)
metazai
Regular Contributor
 
Join Date: Apr 2004
Location: Orange County, CA
Posts: 120
metazai is on a distinguished road
Cool . . . never heard of that one.

Regardless, now I don't get an error on fopen anymore with this (sorry DJMaze, I had to add in the 'w' or I got another error warning me it was missing):
Code:
$fh=fopen( realpath( dirname(__FILE__).$myFile),'w' );
But now, when I go to write the results to the file later after defining $bodysection and using
Code:
fwrite($fh, $headsection);
The result is that I get:
Code:
Warning: fwrite(): supplied argument is not a valid stream resource in /home/warriorg/public_html/admin/includes/publish.php on line 73
__________________
metazai is offline   Reply With Quote