Quote:
Originally posted by JSA Matt
keep it simple : )
PHP Code:
<?php
$file = "random.txt";
$file_Content = file($file);
if (count($file_Content) > 0) {
$line = $file_Content[rand(0,count($file_Content)-1)];
echo $line;
}
?>
|
Thanks very much, works great.