php. write to file
<p>I am learning php. I want to write string to file, but nothing happens.
How can I debug it? I have experience with python. there I could use terminal 
to try small code snippets, but I don't know how check code in php.     </p>

<pre><code>$myFile = "testFile.txt";
$fh = fopen($myFile, 'w');
$stringData = "Bobby Bopper\n";
$myvar = fwrite($fh, $stringData);
$stringData = "Tracy Tanner\n";
fwrite($fh, $stringData);
fclose($fh);
</code></pre>
