fopen create new file that not exists
- by user306449
Hey,
I am trying to either create a file that doesn't exist or write to a file that already does.
within a php file I am trying this:
$file = fopen("data.txt", "a");
fwrite($file, "\n" . $name);
fwrite($file, "," . $lastname);
fwrite($file, "," . $email);
fclose($file);
I am running Apache under windows Xp and have no luck that the file "data.txt" 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?
Thanks in advance
undersound