PHP Create and Save a txt file to root directory
<p>I am trying to create and save a file to the root directory of my site but I don't know where its creating to file as I cannot see any...I need to file to be overwritten everytime if possible too</p>

<p>Here is the code:</p>

<pre><code>$content = "some text here";
$fp = fopen("myText.txt","wb");
fwrite($fp,$content);
fclose($fp);
</code></pre>

<p>How can I set it to save on the root?</p>
