I have three lines of PHP code I use to produce random text from flat files in my branding (header) and content at my current site peterwade.com.
How do I incorporate these in a chunk or snippet? Do I enclose them in normal PHP tages <?php ?> or just paste them in?
~~~~~~
$quote = file("inchrist.txt");
srand((double)microtime()*1000000);
$inquote = $quote[rand(1,count($quote))];
~~~~~~
And how do I call them, e.g. <?php $inquote ?> ?
Thanks,
Peter