4 ms·
> But nowadays people are switching to PHP-FPM, which is the same approach used by Python, Java and most other languages. What? Not even close. You can update
by francislavoie 6y ago
> But nowadays people are switching to PHP-FPM, which is the same approach used by Python, Java and most other languages.
What? Not even close. You can update PHP code by just replacing the files, it's not compiled. PHP-FPM is just a layer that provides a fastcgi interface and manages processes that run PHP. It's super easy to run, super easy to proxy to with Caddy or Nginx or whatever else support fastcgi.
Java is compiled, and typically runs its own HTTP server. Python is not compiled, but usually it runs its own HTTP server, or a WSGI server which adds another layer.
> Every possible extension baked right into the language as a global function instead of using namespaces and a package manager like other languages.
Are you trying to say that global functions are a strength? Namespaces are a big improvement. Many modern PHP extensions provide namespaced classes now, it's mainly the older ones that don't.