Hi,
I found this code on the php.net site, but for some reason i can't get it to work.
It breaks on line 2, saying No such file or directory. The file exists, i promise.
Anyone have any ideas?
1 $filename = "c:\test.txt";
2 $fd = fopen ($filename, "rb");
3 if($fd){
4 $contents = fread ($fd, filesize ($filename));
5 }
6 else
7 {
8 print "cannot find file";
9 }
Thanks in advance,
Mike