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; ?>
« In Review
|
Main
|
The Rat »
December 28, 2007
Funny
EASILY the
funniest thing I've seen
in a long time.
Posted by e1000 at December 28, 2007 12:47 AM
Comments
Post a comment
Name:
Email Address:
URL:
Remember personal info?
Yes
No
Comments: