News for hackers. Stuff that matters.
Re:An Internet of PHP by throwmeout123 on Saturday September 09, 2023 @09:10PM (#37451952)
You almost convinced me to try it again but then i remember about:

* php.ini * php extensions * hardish deploy needing a specially configured web server * huge number of terribly named builtins * functions returning int|bool|null|whoknows * $, -> * cant trivially dockerize * laravel wants me to install even more crap other than Apache phpfpm php composer artisan sail larathis larathat so he can buy the second lambo by copying rails and django * xdebug

And i just go on my merry way. Php devs forgot the mountain of quirk and bullshit they internalized. That’s the same reason I’m starting to hate python

Re:An Internet of PHP by mwint on Saturday September 09, 2023 @10:09PM (#37452259)
Can you add some color the bit about it not being trivially dockerized? Might be doing this soonish for work, would love extra info.
Re:An Internet of PHP by throwmeout123 on Saturday September 09, 2023 @10:21PM (#37452317)
For a Production setup we had to configure an nginx container plus the FPM container, let em talk, Configure some more Commands to enable/disable xdebug (that requires a restart of the containers since it needs a php estension) and i think that’s all. Other langs we use are literally “run the app” then kube will handle the rest.
Re:An Internet of PHP by mwint on Saturday September 09, 2023 @10:22PM (#37452321)
Got it, thanks!
Re:An Internet of PHP by throwmeout123 on Saturday September 09, 2023 @10:27PM (#37452346)
Yw, not really hard but since we’re not a php shop it required a lot of research, trial and error, complexity as in “need to know something not related to Application or domain” and ops are unhappy at having to support this one of a kind setup. There might be a better way tho
Re:An Internet of PHP by husarcik on Saturday September 09, 2023 @11:19PM (#37452602)
I skip all of that and use a docker image with octane. Much faster and easier to maintain. No separate FPM container too!
Re:An Internet of PHP by husarcik on Saturday September 09, 2023 @11:30PM (#37452644)
I skip all of that and use a docker image with swoole. Much faster and easier to maintain. No separate FPM container too!
Re:An Internet of PHP by kyriakos on Saturday September 09, 2023 @11:34PM (#37452668)
Why would you enable xdebug in production?
Re:An Internet of PHP by throwmeout123 on Sunday September 10, 2023 @03:15AM (#37453590)
I wouldnt but the container setup was the same to prod