<?php // first read the file into a buffer, if it exists // open in read mode only if ($fp = @fopen ("guestbook.data", "r")){ $entries = @fread($fp,filesize("guestbook.data")); @fclose(fp); } print "&entries=".$entries; ?>