Errors All ‘Round // VOID-STAR.NET

100% cheshire.

Errors All ‘Round

starfyre’s 403 ring has inspired me to once again overhaul my own error pages. I noticed starfyre was using PHP error pages, which is something I’ve been trying to do for ages with no success (in the past it always gave me 500 errors, no matter how I tried to swing it). Anyway, I emailed starfyre about how she did it — no tricks, just .htaccess — so I went back and tried again… and, magic! It worked!

Yay, so now I have leet PHP’d error pages that actually log errors in a table so I can see who is getting them and from where (unfortunatley the way Apache rewrites URIs for errors means I can’t currently get what script they were trying to get it, but there must be a way to do it, so I’ll flick through Apache and/or PHP stuff later when I could be arsed). Now I just need to make a neat little file that prints out the errors in the same way the hit tracker does. But not right now, it’s 3am.

For the obscenely curious, the error pages are here: 400, 401, 403, 404, 500. Yeah, they all have the same picture. I might do some different ones later when I could be arsed.

In other news, I’m playing World of Warcraft again (the horror). Yup.

This song is so damn infectious. And the little thing at the end about driving safely (“is that your eyeball on my dress?”) is pretty funny… the first few times, at least.

259 words posted 2015 days ago at 1:30 am.

This entry has 2 comments from chelle, Dee. Tell Dee what you think?

Filed under Geeking and tagged with , , .

Written listening to Broadway Cast, 'You Can't Stop the Beat' [Hairspray].

Related posts...


2 Comments

  1. 2015 days ago
    199 comments

    chelle

    you know, it’s kind of funny when you’re reading about other people celebrating their error pages. akurei was laughing at me last night in my self-glory concerning my productivity in finally creating that stupid ring.

    lmao, he was like “you know, usually i get pretty -annoyed- when i see 403 errors…”

    sigh. such vain web designers we are. then again, i credit my obsession with it toward making it appear to everyone who trips on my site that i’ve anticipated -everything- because i’m so 1337 like that.

    hee, nice error pages. i think i see a “send me an[d] e-mail” typo on the 400 one, however.

  2. 2014 days ago
    1,606 comments

    Dee

    403′s annoy me, too, but I get a perverse satisfaction in knowing they probably annoy other people even more, if only for the fact that I can always get to my directories via FTP or whatever. Mwahaha!

    And, yeah, spelling mistake fixed. ^^” Thanks for that.

    As for your problem with editing text files, the way I do mine is like so:

    print “n”;

    For flat files, obviously. Otherwise you might want to try something like htmlentities();

    edit :: Jeebuz, it would help if the goddamn tags were around the right way. D’oh.

Add a Comment

Add a Comment

A legitimate email address or OpenID-enabled URL (e.g. your Dreamwidth journal) is required. Links to LiveJournal accounts will be removed due to malware on that site. First-time comments are both welcome and moderated. Some HTML is allowed. There is no free speech.