On doing things right the first time

Those of you who look at the site regularly: You’ve probably noticed that there are a lot of broken pages. That problem should be rectified within the next few days.

Note to any programmers out there: As much as I value practice through experimentation, there is something to be said for finding out how to do things right before you put everything together.

Case in point - When putting links to vital PHP scripts for each page, I used static links. Yesterday, our lovely host had to move the site to another server as an emergency measure…thereby breaking every single static links for these vital bits of script that the pages are built with. I’ve fixed most of them, but it will undoubtedly take me days to find them all (and maybe not even then…).

And all this, simply because I was ignorant for the longest time of the simple PHP global variable $_SERVER[’DOCUMENT_ROOT‘], which would have prevented this whole thing in the first place by locating each file relative to the root directory of the site.

Sigh.

If you know of any pages that are broken, leave a comment or E-mail webmaster@thedeconline.com. Your help is greatly appreciated.

1 comment so far ↓

#1 Dr O'Conner on 10.22.08 at 8:11 am

Hang in there, Galen. Think of everything you are learning with this editorship.

Leave a Comment