25 ms·
Modern PHP frameworks work around the issue where the web server directly executes PHP files targeted by the request URL. They also provide nice abstractions th
by Nextgrid 4y ago
Modern PHP frameworks work around the issue where the web server directly executes PHP files targeted by the request URL. They also provide nice abstractions that are battle-tested and secure.
PHP is not my cup of tea (I can't be productive with the unintuitive function naming) but with a modern framework it can be proper. Laravel for example gives you a Django/Rails equivalent including task queues/etc, and becomes immune to the dumb vulnerability of uploading malicious PHP files in the media folder since all requests are routed through a single entry point rather than having the web server directly execute the PHP file.
- phplovesong 4y agoThis does not matter. PHP always starts, then exists immediately. This means you cant run something trivial as a websocket server in traditional PHP. I know theres some caching, but each request needs "the entire state" of the PHP app, and some frameworks like laravel or symfony are huge, and this is clearly visible when you notice how poor PHP performance is in basic req/sec benchmarks.