could someone please explain to me why I get the above error msg? I took this script from the net, it apparently works correctly for others but not for me and I'd like to understand why.
thx
thx
Code:
<?php
$file = "guestbook.txt";
if (fopen($file, "r")) {
$fil = "guestbook.txt";
$fo = fopen ($fil, "r");
$con = fread ($fo,filesize ($fil));
fclose ($fo);
echo "$con";
} else {
echo "<h3>Sorry there was an error please contact us now<h3>";
}
?>
Comment