3 ms·
I use PHP for administrative tasks on a server that runs wordpress and few other PHP apps. My only reservation is that PHP API to start external processes are
by _0w8t 4y ago
I use PHP for administrative tasks on a server that runs wordpress and few other PHP apps.
My only reservation is that PHP API to start external processes are awkward. They either use a shell and require careful escaping of arguments or too low level with explicit fork/exec. I took care of that with few utilities, but for a quick replacement of shell scripts this is a significant drawback.
On the other hand modern PHP supports types out-of-the box. It turned out to be a big plus when those administrative scripts grew in size.
- porker 4y agoWhile it moves it from a single script to needing a composer.json and vendor directory, I find the Process component [1] has removed the footguns I used to encounter. 1. https://symfony.com/doc/current/components/process.html https://symfony.com/doc/current/components/process.html