Page 2 of 2
Posted: Wed Aug 02, 2006 3:38 pm
by neophyte
Code: Select all
$board_at_work = true;
if($board_at_work === true){
$websites = array('digg.com', 'devnetwork.net', 'slashdot.org', 'freesoftwaremagazine.com' );
header( 'location: http://'.$websites[rand( 0,count($websites)].'');
} else {
define( 'WORK', 'ALL DAY' );
}
Posted: Wed Aug 02, 2006 4:19 pm
by Oren
Wouldn't that be:
Code: Select all
header('location: http://' . $websites[rand(0, count($websites) - 1]);

Posted: Wed Aug 02, 2006 4:23 pm
by Nathaniel
Geek.
Posted: Wed Aug 02, 2006 4:27 pm
by Oren
Nathaniel wrote:Geek.

I've actually been waiting for someone to say that, it was more of a joke

Posted: Wed Aug 02, 2006 4:43 pm
by RobertGonzalez
Oren wrote:Nathaniel wrote:Geek.

I've actually been waiting for someone to say that, it was more of a joke


Then I'll second it...
Geek!
Posted: Wed Aug 02, 2006 4:46 pm
by Luke
that is priceless! (the laughing smileys)