HI ,
whats wrong with the following code:-
<?php
$myFile = "test.txt";
$fh = fopen($myFile, 'a');
$add="This new stuff /n";
fwrite($myFile, $add);
fclose($fh);
?>
When i run this it gave me the error:-
Warning: fwrite(): supplied argument is not a valid stream resource
whats wrong with the following code:-
<?php
$myFile = "test.txt";
$fh = fopen($myFile, 'a');
$add="This new stuff /n";
fwrite($myFile, $add);
fclose($fh);
?>
When i run this it gave me the error:-
Warning: fwrite(): supplied argument is not a valid stream resource
Comment