Not-Noticeably.net

Skip navigation

Stupid is as stupid does

24th May 2006 / 16:30

Tagged: Geekiness, Hosting, Internet, MySQL, PHP, PHPAskIt, Rambling

Yet again I find myself making stupid blunders.

Guess what I did the other day. No, go on - guess. It has to do with the fact that I released a minor update to PHPAskIt the other day.

...yup, that's right, I left all my database details - complete with passwords and everything - in the config file which I released as part of the .zip file. Now a normal person would check over the files up for release, and make sure that there are no passwords or sensitive information left in them. Or at the very least, download the file once it's been released and make sure all the parts work properly. Did I do that? No. I tested the files on my local PHP installation and assumed everything would work. Then I used one of the fixes on another site, and found out that it didn't work. Why? Because I have PHP5 locally and this other site uses PHP4. No big deal, obviously that function had been updated in PHP5 so I consulted the PHP manual and found a working equivalent for PHP4. I then updated the zip file up for download. Then I noticed a few typos here and there and updated the file around 230943435235 more times. Not once did I notice I'd left all my info in the config file. 3 days later I suddenly ask myself if I'd tested this or that in the new version, so I download the one I'd put online to check if I had added something before I went about tinkering with the code again.
...and there we go, I noticed my own info in the config file. THREE DAYS AFTER RELEASE. I'm surprised I wasn't hacked again since I used that password on my cPanel and stuff. (Note to all hackers and other nosey people: passwords everywhere now changed, so don't bother trying it.)

My boyfriend (whose birthday it was yesterday - and whose present hasn't arrived yet even though I ordered it some time ago) thinks I was blonde in a previous life, or that I'm a natural blonde with dyed hair because of all these stupid blunders I make. :\ Perhaps he's right.

Ooh, but my server time is now corrected. Some new guy has joined my hosts and although last week things were looking a bit shady (I was hacked a total of 3 times and support did absolutely nothing about it) it all looks to be better now. Notice you can actually get to my site now? Yay :)

Comments (6)

  1. Lee's Gravatar

    Lee
    24/05/2006 at 17:54

    You are lucky that no one noticed that you had left your information in the file, do you know how many people downloaded the files.

  2. Amber's Gravatar

    Amber
    24/05/2006 at 19:21

    Oh dearie me. You sound like you did a me. I found someone staring at my head the otherday. I said, "Uh, excuse me?" and they just replied with, "I was checking to see if you had any blonde roots coming through"

    You were definitely lucky :)

  3. valerie's Gravatar

    valerie
    25/05/2006 at 18:51

    Awwww don't feel bad! I did that once, too!!!!

  4. Donnie's Gravatar

    Donnie
    29/05/2006 at 21:29

    LOL, I saw the info. but didn't think anything of it. My local machine isn't accessible via the internet. So I figured you're was the same way.

  5. Jamie's Gravatar

    Jamie
    5/06/2006 at 6:48

    Wow Amelie.. that's horrible! I'm glad you weren't hacked, though :) Lucky!

  6. Erin's Gravatar

    Erin
    5/06/2006 at 19:59

    You were really lucky, Amelie! That could have been really, REALLY disastrous. Nitpicking will save your life, I swear!

Previous entry: Dunce alert | Next entry: Oops, I did it again.