creating text file throws error
<p>I am a php beginner.I want every time when the web page is open to create a file that does not exist. But every time when I run the program I have an error teling me that the file was not created.
This is my code:</p>

<pre><code>$ip=$_SERVER["REMOTE_ADDR"];
if(!isset($_COOKIE['firsttime'])){
  setcookie('firsttime', 'no');
  $myfile = 'file/form'.$ip.'.txt';
  if(file_exists($myfile) == FALSE){
    $fo = fopen($myfile, 'w');
    $code = '&lt;form action = "" method = "post"&gt;';
    fwrite($fo, $code);
    fclose($fo);
  }else{
    unlink($myfile);
    $file = new File();
  }

}
</code></pre>

<p>where is my mistake?</p>
