PHP 5.4.0 released
Posted Mar 2, 2012 13:41 UTC (Fri) by osma
In reply to: PHP 5.4.0 released
Parent article: PHP 5.4.0 released
So what language is actually better suited for the job that PHP is used for all the time?
That's a very good question. If the job is to add a little bit of server processing to otherwise static HTML pages (which I think is the original PHP use case that then got a bit out of hand), then there's not much competition. I guess nobody does SSI any more and it's very limited in any case. There's PSP in mod_python, but I doubt it is used much either.
Using all the other languages tends to require more infrastructure. Often you need to run another HTTP server process besides Apache. With PHP, you can just install mod_php and immediately add bits of code into your HTML files. That's not a good idea if you need to do big applications, but it's a very easy way to at least get started with server-side programming (plus with HTML5 you can do a lot on the client side nowadays, so often you just need a little bit of server-side logic). It's also quite easy for ISPs to support running small PHP scripts so it tends to be available in a lot of environments.
to post comments)