Hi…A funny thing I noticed:
First, I have .htaccess specifying that .html files should be processed through php, and it has been working for months.
That being said, I have an html file that I am trying to perform a file operation inside (I am trying to programmatically create an html file):<? /*some php code*/ $fh = fopen("/home/.ceefer/myusername/mysite.com/subfolder/filename.html", 'w') or die("can't open file"); /*some php code*/ ?>
When this code block is inside a file called “test.html” I get the following error:
“Warning: fopen(/home/.ceefer/myusername/mysite.com/subfolder/filename.html) [function.fopen]: failed to open stream: Permission denied in /home/.ceefer/adminsean/mysite.com/test.html on line 3
can’t open file”
However if I rename test.php to test.html, it works fine.
Can anyone tell me how I can “fix” file operations within html files precessed as php? Or is it a bug? I don’t want to have to rename all of my files (and their references) to .php, neither do I want to have some files as php and some as html.