Hi, I have this very strange problem 🙂)
This is the code that i have to write to a file..
<?php
$file="dummy.txt";
if (is_writeable($file)) {
$fd=fopen("http://www.mydomain.com/testfolder/$file", "w");
$string="12345678901234567890";
$write=fwrite($fd, $string, strlen($string));
echo $write." chars written to ". $file;
fclose($fd);
} else { echo $file." not writeable"; }
?>
Now the problem is that I dont get any error messge..instead the message is "20 chars written to dummy.txt"
But when i open dummy.txt there's nothing in it. I have set all file permissions for this..but nothing so far. I work on NT platform.
All help appreciated