J E E - R A H L
$delim = "\n"; $quotefile = "quotes.txt"; $fp = fopen($quotefile, "r"); $contents = fread($fp, filesize($quotefile)); $quote_arr = explode($delim,$contents); fclose($fp); // generate random quote index $quote_index = (mt_rand(1, sizeof($quote_arr)) - 1); // get quote at $quote_index and return it $herequote = $quote_arr[$quote_index]; echo $herequote; ?>
« Time
|
Main
|
Fortune »
November 30, 2007
Bouncin
I, I, I, I, I want the knife........... Please..........
hahahahahahah
Posted by e1000 at November 30, 2007 12:20 AM
Comments
Post a comment
Name:
Email Address:
URL:
Remember personal info?
Yes
No
Comments: