Originally Posted by
Jeff Mott
When PHP 3 rolled out, it was a pretty terrible language. No OOP to speak of; hundreds of functions in the global namespace; inconsistent naming; registered globals; magic quotes; mixing logic with presentation; bad or no multibyte characters; strange type coercion; and probably many more issues I've since forgotten about. BUT... it was super easy for people with no programming background. They could build contact forms, blogs, forums, etc., with little knowledge of security issues and no knowledge of design patterns. (If you can, take a look at vBulletin's 3.x code, and be ready with a barf bag. WordPress 2.x is also pretty sickening under the hood.) I think the most significant factor in PHP's rise to fame was its appeal to the large population of aspiring non-programmers.
Today, PHP is a lot better. Now we can write code that is Java-esque. Ruby, I'm sure, is also a good and fully featured programming language, but I think it's going to remain a minority language for two reasons: PHP already has a strong foothold, and because Ruby's syntax tends to look foreign to people accustomed to C-style syntax.