fopen file - help !!!
Posted: Thu Jun 19, 2008 7:27 pm
Hi,
I'm trying to write a file, using this code:
$myfile = "c:\wamp\www\testes.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "Tracy Tanner\n";
fwrite($fh, $stringData);
fclose($fh);
I'm using WAMP on Windows Vista, I have total permissions to everybody on c:\wamp\www
But I can't write the file and get "can't open file".
Thanks for your help.
Pedro
I'm trying to write a file, using this code:
$myfile = "c:\wamp\www\testes.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "Tracy Tanner\n";
fwrite($fh, $stringData);
fclose($fh);
I'm using WAMP on Windows Vista, I have total permissions to everybody on c:\wamp\www
But I can't write the file and get "can't open file".
Thanks for your help.
Pedro