hi there i dont know why it displas an error here with me..
sample i have this kind of code
$filename = "test1.DAT";
$path = "c:\\server\\home\\";
$messageToText = "sample text to be writen on test1.DAT";
$fp = fopen ($path.$filename, "a");
fputs($fp, $messageToText);
fclose($fp);
the error is like this
Warning: fopen(c:\server\home): failed to open stream: Permission denied in c:\server\home\test.php on line ###
Warning: fputs(): supplied argument is not a valid stream resource in c:\server\home\test.php on line ###
Warning: fclose(): supplied argument is not a valid stream resource in c:\server\home\test.php on line ###
actually it just displays an error.. but it do generate the files i just wanna eliminate those error 🙂