homebiznizz.net, homebusiness blog, free open source php-scripts, 
make money, cash, internett, home made, homemade, entrepreneur, 
infopreneur, seo, blogging, earn income, how to, affiliate, problogger
Twitter Traffic Exposed!

A PHP-script for showing random text

I got hold of today a simple, but very easy to use PHP-script that randomly displays blocks of text. You have to embed the text or link or code you need to show directly in the code, but that’s easy. Just look at the code below.

< ?
//set the urls
$urls = array(
'- Insert text/link/code here -',
'- Insert text/link/code here -');
 
srand(time());
 
//set the number in (rand()%3); for however many links there are
$random = (rand()%2);
echo ("$urls[$random]");
?>
It has been posted no comments to this blogpost.
Permalink to this blogentry
Save up to 30% on Business books at FTPress.com