Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.
Moderator: General Moderators
neophyte
DevNet Resident
Posts: 1537 Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota
Post
by neophyte » Wed Aug 02, 2006 3:38 pm
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' );
}
Oren
DevNet Resident
Posts: 1640 Joined: Fri Apr 07, 2006 5:13 am
Location: Israel
Post
by Oren » Wed Aug 02, 2006 4:19 pm
Wouldn't that be:
Code: Select all
header('location: http://' . $websites[rand(0, count($websites) - 1]);
Nathaniel
Forum Contributor
Posts: 396 Joined: Wed Aug 31, 2005 5:58 pm
Location: Arkansas, USA
Post
by Nathaniel » Wed Aug 02, 2006 4:23 pm
Geek.
Oren
DevNet Resident
Posts: 1640 Joined: Fri Apr 07, 2006 5:13 am
Location: Israel
Post
by Oren » Wed Aug 02, 2006 4:27 pm
Nathaniel wrote: Geek.
I've actually been waiting for someone to say that, it was more of a joke
RobertGonzalez
Site Administrator
Posts: 14293 Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA
Post
by RobertGonzalez » Wed Aug 02, 2006 4:43 pm
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!
Luke
The Ninja Space Mod
Posts: 6424 Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA
Post
by Luke » Wed Aug 02, 2006 4:46 pm
that is priceless! (the laughing smileys)