PHP is a proof that you don't need elegant or good technical solutions to be successful. You can literally pile up slop together and still be successful.
I think PHP came right at the time that every man and his dog was a "web developer" and writing absolute unknowledgable stuff. And PHP allowed for it.
ASP had a bit of a barrier to entry because it required all the MS. Whereas PHP was everywhere.
Yeah; the common idea of dignity and self-respect is to replace the duct tape with proper engineering once you're successful though, instead of just taping ever more of it on top and pretending SQL injections aren't really a problem.