3 ms·
I'm no PHP fan, but you're a little wrong here. Please see [1], or provide a better source so we can all be enlighten. [1]: http://news.netcraft.com/archives/2
by uniclaude 16y ago
I'm no PHP fan, but you're a little wrong here. Please see [1], or provide a better source so we can all be enlighten.
[1]: http://news.netcraft.com/archives/2011/ http://news.netcraft.com/archives/2011/
- jrockway 16y agoThe author of the article says he's using PHP for glue, not for writing CGI apps. There are certainly a lot of legacy apps are of the old-style "click a link, send HTML as a response". But the new "glue style" is about writing your web app as a JSON server that speaks HTTP, and then writing the UI in Javascript to run in the browser. That's what I'm saying nobody uses Apache for. The way people write new apps now is with high-performance server processes that can handle tens of thousands of clients per thread. Apache and PHP do not do that. 99.999% of the Internet is legacy apps, and so Netcraft statistics will tell you how people were writing apps 5-10 years ago.
- Joeri 16y agoIf you're serving tens of thousands of clients, each client has to have a very low server footprint, so that means you're not doing much in-memory manipulation of datasets. In business software, that would be the exception, not the rule. I think a big driver behind PHP is the simplicity of the model. Each request can pretend it exists in isolation, having the whole web server to its own. Simplicity + good enough = popularity.