3 ms·
> Virtues of PHP > First, state. Every web request starts from a completely blank slate. > Second, concurrency. An individual web request runs in a single PHP
by paulddraper 10y ago
> Virtues of PHP
> First, state. Every web request starts from a completely blank slate.
> Second, concurrency. An individual web request runs in a single PHP thread.
> Finally, the fact that PHP programs operate at a request level
Isn't this just "virtues of Apache modules"?
There's mod_python, mod_perl, and mod_ruby. Are state, concurrency, and global requests virtues of these languages too?
---
Even if you do somehow convince me that these virtues are specific to PHP, you can't convince me it does it well. Hence, MaxRequestsPerChild.
To quote Radmus Lerdorf,
> The real programmers will say "Yeah it works but you're leaking memory everywhere. Perhaps we should fix that." I’ll just restart Apache every 10 requests.
Clean slate, my eye.
- junker101 10y ago> The real programmers will say "Yeah it works but you're leaking memory everywhere. Perhaps we should fix that." I’ll just restart Apache every 10 requests. They're cattle not pets. (/semi-sarcastic)
- urbanxs 10y agoLaravel is a collection of bad design
- mtberatwork 10y agoNot to nitpick, but mod_python has long been shelved. The excellent mod_wsgi is the preferred tool for deploying Python web applications under Apache. Also, most folks serve PHP applications in production under PHP-FPM/FastCGI.