Robson » Code » PHP » Quote

 
<?
   // random quote displayer v1.0
 
   // load the text file with quotes
   $quotes = file('quotes.txt');
   // show a random line of the file
   echo $quotes[array_rand($quotes)];
?>
 
© 2004-17 robson | cc unless stated