PDA

View Full Version : Including quotes in footer


theprof
Sat 9th Dec '00, 3:26am
Hello. I'm trying to include my favourite quotes in my footer. The code goes like this:

<? $quote = file("quotes.txt"); srand((double)microtime()*1000000); echo $quote[rand(0,count($quote))]; ?>

How do I add this to my footer in order to show the quote?

Mike Sullivan
Sat 9th Dec '00, 12:31pm
$quote = file("quotes.txt");
srand((double)microtime()*1000000);
$footer = $quote[rand(0,count($quote))];

theprof
Sat 3rd Feb '01, 3:45am
Thanks.

Joe
Sat 3rd Feb '01, 3:50am
2months later . . . ;)