Hello,
I am trying to publish content that is in my website to a static html file!!
This works the first time I run it (ie it creates the files and places them in the correct dir) however if I want to overwrite these files (ie when the db content changes) I get the following error
"The File Intro.html Failed to open"
The code that throws this is
$path = "../published/";
@ $fp = fopen ("$path/Intro.html", "w");
if (! $fp)
{
echo "<p><strong>The File $section.html Failed to open </strong> </p> </body>";
exit;
}
Why is this happening??
PS is it something to do with permissions??
they are:-
-rw-r--r-- 1 apache apache 7611 Apr 11 17:19 Intro.html