Does anyone have any experience with the following error message in PHP running on Linux "<b>PHP Warning:  fopen(./text.txt): failed to open stream: Permission denied</b>"?<br><br>I am trying to create a text file on Linux via a website utilizing PHP. I have changed the ownership to apache:apache, and chmod 777 and 755 with no success. <br>

<br>The meat of the code is as follows <br><br>$myFile = "./text.txt";<br>$filehandle = fopen($myFile, 'w+') or die("can't open file");<br>$stringData .= "Hello Tux";<br>fwrite($filehandle, $stringData);<br>

fclose($filehandle);<br><br><br>-- <br>mB.