PHP write in file
<p>I want to write something in a textfile.</p>

<pre><code>$myFile = "meinung.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "Floppy Jalopy\n";
fwrite($fh, $stringData);
$stringData = "Pointy Pinto\n";
fwrite($fh, $stringData);
fclose($fh);
</code></pre>

<p>when i want to execute this, it says "cant open file"</p>

<p>what did i make wrong?</p>
