kde tu moze byt chyba? udajne v riadkoch ktore som dal tucnym
if (File_Exists ("book.dat")):
$fp = FOpen ("book.dat", "r");
$data = FRead ($fp, FileSize("book.dat"));
FClose($fp);
endif;
$fp = FOpen ("book.dat", "w"); FWrite ($fp, $write.$data); FClose ($fp);
echo "<html><head><meta http-equiv=\"refresh\" content=\"0; url=index.php\"></head></html>";
endif;
elseif ($action=="clear"):
$author_cookie="guestbook_author";
$email_cookie="guestbook_email";
$web_cookie="guestbook_web";
SetCookie($author_cookie,stripslashes($author),0);
SetCookie($email_cookie,stripslashes($email),0);
SetCookie($web_cookie,stripslashes($web),0);
echo "<html><head><meta http-equiv=\"refresh\" content=\"0; url=index.php\"></head></html>";
endif;
?>
|