3 ms·
My take on why PHP is popular: web programming back in the late 90ies was not easy, and the tools available looked something like this: * Perl CGI's, and, late
by davidw 14y ago
My take on why PHP is popular: web programming back in the late 90ies was not easy, and the tools available looked something like this:
* Perl CGI's, and, later on, mod_perl. Worked pretty well, and Perl is a serious language, but things got big and clunky, especially with mod_perl. CGI's are kind of slow.
* Various proprietary Tcl solutions. These were very cutting edge in many ways, but were open sourced far too late.
* Java towards the very end of the decade. Then, as now, it was a fairly heavy-duty solution; not suitable for, say, adding a dynamic time or something like that to an otherwise static page.
* PHP. Fairly easy to install compared to the alternatives, and reasonably easy to get started with. You did not need to understand classes, OO, and how to compile things just to get a dynamic web page up and running.
In short, PHP "scales down" in terms of programmer effort to get started, giving people at the margin the ability to do something they otherwise would not have. Granted, that something might have been quite ugly, but at least you could get started.