| px | top | add code | search | signup | login | help |
<?php
/*
Topic Roundup Copyright 2000 Brian Ross
Version 1.0
brian@music4free.com
AIM: DeadBrain3
ICQ: 15273600
http://brian.zero-gravity.org/php/
How to install:
1. In the line $randomnumber = rand(0,4); change rand(0,4); to
say the first and last numbers of the random topic array.
2. Add and change the sample topics below.
3. Use a PHP include to insert this script into the title of
your website.
*/
srand((double)microtime()*1000000);
$randomtopic = rand(0,5);
if ($randomtopic == "0") {
echo ("Brain's Pad - You know you want more!!");
} else if ($randomtopic == "1") {
echo ("Brain's Pad - Why does it suck?");
} else if ($randomtopic == "2") {
echo ("Brain's Pad - Can't Get Enough!!");
} else if ($randomtopic == "3") {
echo ("Brain's Pad - Take It or Leave It!!");
} else if ($randomtopic == "4") {
echo ("Brain's Pad - We Are Better Then The Other Guys!!");
} else if ($randomtopic == "5") {
echo ("Brain's Pad - All That and More!!");
} else {
echo ("ERROR: There was a problem running the script. ");
}
?>
Comments or questions?
PX is running PHP 5.2.11
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.