Why Bad Coding Can Crash Your Server
July 9th, 2007 by Kyle HealeyMost Commented Posts
Lately I have realized why clean code and being compliant with the W3C Markup is so important. Currently we have one site doing around 25,000 uniques a day, which normally isn’t very much. However, the script it is running on was a modded turnkey which was nothing pretty to begin with.
The script calls images and other information through mysql databases and it’s gotten to a point that at peak hours (9pm -11pm) the site has managed to crash the server at hostgator three nights in a row.
I hear you saying now, hostgator web hosting is crap and that’s the reason… well I’d believe it but I have another server with hostgator that can handle that kind of traffic no problem, and it’s less expensive than the dedicated server that keeps crashing. It is all to be blamed on the script, which will remain nameless (not that it matters though, they already closed up shop and released “version 2.0″ under a new company name.
Always make sure you are working with scripts that can handle high traffic once you get there, and a good lesson to be learned from my experience is to start off with a custom script that does everything you want before you start instead of using a turnkey and trying to mod it yourself.

I am a professional SEO located in Toronto Ontario. I am available for Search Engine Optimization Services, Consulting, and Full Project Management. Please 
