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