note 96639 added to function.file

From: Date: Tue, 09 Mar 2010 16:43:18 +0000
Subject: note 96639 added to function.file
Groups: php.notes 
Request: Send a blank email to php-notes+get-166832@lists.php.net to get a copy of this message
Correction to last post, works well, but produces a notice on the first item processed: Undefined offset. just add the -1 to the initial $i count. <?php $logBuffer = file($pathToLog); for($i=count($logBuffer)-1;$i>0;$i--){ $output_buffer .= $logBuffer[$i]; } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 192.197.77.130 ---- Manual Page -- http://www.php.net/manual/en/function.file.php Edit -- https://master.php.net/note/edit/96639 Del: integrated -- https://master.php.net/note/delete/96639/integrated Del: useless -- https://master.php.net/note/delete/96639/useless Del: bad code -- https://master.php.net/note/delete/96639/bad+code Del: spam -- https://master.php.net/note/delete/96639/spam Del: non-english -- https://master.php.net/note/delete/96639/non-english Del: in docs -- https://master.php.net/note/delete/96639/in+docs Del: other reasons-- https://master.php.net/note/delete/96639 Reject -- https://master.php.net/note/reject/96639 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#166832) next »