Public feed #598512

Something

public php v1 · immutable
Raw Edit
·published 2007-07-01 12:32 UTC
rendered paste body
<?php$quotefile = "quote.txt"; $fhandle = fopen($quotefile,"r"); $fcontent = fread($fhandle,filesize($quotefile)); fclose($fhandle);$arr1 = explode("(qd)",$fcontent);$arrloop = 0; $quotenum = 1;while ($arrloop <= count($arr1)) :if ($quotenum <= count($arr1)) :echo "<p><strong>" . $quotenum . "</strong><br>";else :echo "<p><strong>EOF</strong></p>";endif;echo $arr1[$arrloop];$arrloop++; $quotenum++;echo "</p>";endwhile;?>