Code: Select all
$guestbook = file("guestbook.txt");
$guestbook = explode('<hr>', $guestbook);
echo $guestbook[1];
What it does, is show nothing. It doesn't give an error, but it doesn't show anything either. I tried changing 'hr' into things like "Zeven" and 'Zeven' and made sure there were two entries that contained that, but to no avail. I also tried a different text-file, where I put some random words in, ending with Zeven so it'd cut it there, but didn't work either. If I change $guestbook[1] to $guestbook[0] it does do something. It shows Array, and that's all.