What to do when you are bored at work...

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

User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post 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' );
}

User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

Wouldn't that be:

Code: Select all

header('location: http://' . $websites[rand(0, count($websites) - 1]);
:wink:
User avatar
Nathaniel
Forum Contributor
Posts: 396
Joined: Wed Aug 31, 2005 5:58 pm
Location: Arkansas, USA

Post by Nathaniel »

Geek.
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

Nathaniel wrote:Geek.
:lol: I've actually been waiting for someone to say that, it was more of a joke :wink:
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Oren wrote:
Nathaniel wrote:Geek.
:lol: I've actually been waiting for someone to say that, it was more of a joke :wink:
Image
Then I'll second it...

Geek!
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

that is priceless! (the laughing smileys)
Post Reply