file_put_contents not working on server
<p>this simple code create a file, when page is refreshed but it is not working.  </p>

<pre><code>&lt;?php
    $fileName="test1.html";
    $content="&lt;h1&gt;header&lt;/h1&gt;";
    file_put_contents($fileName,$content);
?&gt;
</code></pre>

<p>From what I can see the user has all the privileges needed to create a file </p>

<pre><code>lrwxrwxrwx. 1 admin1 root         13 Jul 10 22:35 html -&gt; /var/www/html
</code></pre>

<p>any ideas of what might be preventing creation of the file?</p>