title: fopen create new file that not exists
body: <p>I am trying to either create a file that doesn't exist or write to a file that already does.</p>
  <p>within a php file I am trying this:</p>
  <blockquote>
  <p>$file = fopen(&quot;data.txt&quot;, &quot;a&quot;);</p>
  <p>fwrite($file, &quot;\n&quot; . $name);
  fwrite($file, &quot;,&quot; . $lastname);</p>
  <p>fwrite($file, &quot;,&quot; . $email);</p>
  <p>fclose($file);</p>
  </blockquote>
  <p>I am running Apache under windows Xp and have no luck that the file &quot;data.txt&quot; is being created. The docs say that adding the a parameter should create a file with a name mentioned in the fist parameter (data.txt). what am I doing wring here?</p>
  <p>Thanks in advance
  undersound</p>