Quote:
Originally posted by alex79
i need a php script to display on my main page a random row from a txt file
thanks
|
$lines=file('filename.txt');
echo $lines[array_rand($lines)];
Freeze
__________________
Is it just me, or is it hot in here?
Jorn! Fixth the air condithning, Jorn!
|