|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-08 11:05 UTC] stas at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 12 18:00:02 2026 UTC |
$fp = fopen('slideshow.txt','r'); while(true) { $line = fgets($fp,256); if(!feof($fp)) { list($file,$text) = split('[[:space:]]+',$line,2); echo $text."<br>\n"; } else break; } and slideshow.txt contains: title.php Scripting the Web agenda.php Agenda intro.php Introduction history.php History numbers.php Usage Numbers Output: Scripting the Web Agenda Introduction History a Usage Numbers Note the extra 'a' on the History line. This character changes on every reload. Smells like an off-by-one somewhere.