Quote:
Originally Posted by psili
I re-read the original post and still would go for a solution of outputting a random one line of a text file. That's why this thread is so perfect in it's ability to illustrate how communication is so important; for all parties.
Regardless. I like my crab cioppino served with warm garlic bread.
Huh?
|
PHP Code:
<?php
$lines = file('yourfile.txt');
$num = count($lines);
$r = rand(1, $num)-1;
echo $lines[$r];
?>