file creation failing in php
<p>I am learning file handling in php. I have written the following code to create file:</p>

<pre><code>&lt;?php
    $fileName = "testFile.txt";
    $fileHandle = fopen($fileName,"w") or die ("can't open file");
    fclose($fileHandle);
    phpinfo();
?&gt;
</code></pre>

<p>The problem is I am getting "can't open file". I changed the permission of the directory containing this file and all the files in the directory to 777 still the problem persists.
Can somebody please help me in solving this issue?
Thanks</p>
