Business Card
Weather

PHP Script For Terror Alert Level

I was browsing over at the MovableType Forums and I came across this thread where a guy wanted to link his stylesheet to the output of the Terrorism Alert Plugin. The idea was that his site would have a different skin for each alert level, updated by the plugin on every rebuild.

He was helped to do this by the usual astonishingly bright and creative crew over there.

But, it got me to thinking, what if some poor soul was dependent upon MY stylesheets to know how terrorized to be??? I mean, I only post irregularly, and what if the terror alert went up to red in between postings, and my reader didn't realize he was supposed to be scared to death!

Or what if the alert level went down between rebuilds, and the poor reader didn't know he could relax about teror attacks and start being scared witless by SARS and the economy!

Nope. That would never do. So, the only answer was to cook up a PHP version of the terror alert script, so that my site will be up to date ... even if something happens to me. Remember, "just because you're paranoid doesn't mean people aren't out to get you!"

That's a demo in the upper right corner of this entry, and there's another bit of terror business using this script in the left sidebar.

So read on, to see yet another demo and to get the script (this script is a stand-alone - you do not need the plugin):

Posted by Oscar on 04/02 at 11:58 PM

The trackback URL for this entry is:

singlerep
06 Apr, 2003
05:43 AM

I can’t get this to work. I keep getting “Warning: stat failed for alert.dat (errno=2 - No such file or directory) in ~home/index.php on line 17” Sorry to be dumb but can you help me?

Oscar
06 Apr, 2003
08:49 AM
member avatar

Hi, I answered your question over on the forums, but in case you’re checking here first, I think you probably didn’t add the file “alert.dat” to your directory. Just upload a blank text file and set the permissions to 777. Then try the script again. If that doesn’t work, just let me know

@feckless
19 Apr, 2003
02:10 AM

had to come by & say thanks for this - i had quite a bit of fun with it. installed the real thing first, then one thing led to another & now people can come & set their own terror level (& my colors are much prettier smile

so, thanks again.

Oscar
19 Apr, 2003
07:48 AM
member avatar

Cool! What a beautiful blog you have!

The whole reason I throw together these little scripts is the pleasure in seeing what people like you can do with them.

t35t5
20 Apr, 2003
10:41 AM

oijojlo

Rori
20 Jan, 2004
03:28 AM

Yeah, I am breaking my own rule and commenting on an old entry, but this had me ROTFL!

Oscar
20 Jan, 2004
08:36 PM
member avatar

I’ll take comments anywhere I can get ‘em Rori, and I’m glad you enjoyed my little excursion into the world of the “wars on things.”

    department of gratuitous php
    fun with terror alerts. & why not?

    Tracked on: : feckless(net) (66.246.77.12) at 2003 04 19 02:04:57

The trackback URL for this entry is:

Name:

Email:

Location:

URL:

Some Other Smileys

smiley sad blush wink smug wacky tongue2 tongue shifty undecided shocked wreck cry angry
veryangry2 evil cool anxious surprised smart veryhappy irked mischievous worried dead confused angel ashamed
biggrin bigmouth guilty cutie ill drunk wave lovestruck devil scoobydoo spongebob


Live Comment Preview

Remember my personal information

Notify me of follow-up comments?

Submit the word you see below:


<< Back to main