I like PHP, one issue which I face with PHP though is, that it is difficult to create a self-contained docker image. With node.js or java spring boot i can build an application with an http endpoint and create a single docker image with all included easily. With php I need 2 distinct containers, e.g., nginx, php-fpm and the code mounted on a volume to the the containers. So it seems to be more difficult for setup and…
PHP has had a built-in web server since version 5. People use Apache or nginx because they want to, but because they need to.
An Internet of PHP
101–110 of 333 posts
Re: An Internet of PHP
#102I like PHP, one issue which I face with PHP though is, that it is difficult to create a self-contained docker image. With node.js or java spring boot i can build an application with an http endpoint and create a single docker image with all included easily. With php I need 2 distinct containers, e.g., nginx, php-fpm and the code mounted on a volume to the the containers. So it seems to be more difficult for setup and…
Re: An Internet of PHP
#103At the end of the day if your software works and users like it, does the programming language even matter?
Take, for instance, the PHP environment around the time the "a fractal of bad design" (https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/) article was published — which also coincides with the last time I worked professionally with PHP. During that period, PHP was plagued with inconsistencies, a tendency to hide errors, and insecure default settings, all of which encouraged writing bad, unmaintainable, and insecure code. Those aspects truly matter.
Re: An Internet of PHP
#104Re: An Internet of PHP
#105Re: An Internet of PHP
#106Re: An Internet of PHP
#107Earlier quoted context omitted.
Your comment articulates my thoughts on PHP very succinctly. Especially the culture fit bit. PHP is so insanely pragmatic that if someone looks down on it due to false preconceived notions then they're not the kind of person I can probably work happily with anyway. It's also the thing I'm best at!
And they are humble. They know their state, the flaws in their language and the long problematic history they have. They cherish their languages but are not fanatics.
Re: An Internet of PHP
#108From W3Tech; > PHP is used by 77% of all the websites whose server-side programming language we know. I had a quick look at the methodology section, but it’s not clear to me how accurate this data is. Determining whether a site uses PHP can be relatively straightforward (especially with default extensions / if Wordpress is used / etc), but if a site (potentially using a different language) is behind a reverse proxy/u…
I agree that it's an interesting challenge to try to determine which language a large number of sites are using for the backend, or at least it would be a challenge in some small but maybe not insignificant percentage of cases. And no doubt whichever way they solved it involved compromises.
But that by itself doesn't give us enough information to draw conclusions about accuracy.
Re: An Internet of PHP
#109Laravel really change the game for PHP!
Re: An Internet of PHP
#110I think its strength is its architecture, namely shared-nothing state and concurrency at the web-request level. [1]