4 ms·
It's possible with pcntl_fork() and pcntl_exec() but that's not compatible with apache's mod_php which is probably still pretty widely used even though it's get
by ajsalminen 10y ago
It's possible with pcntl_fork() and pcntl_exec() but that's not compatible with apache's mod_php which is probably still pretty widely used even though it's getting replaced by php-fpm.
- tyingq 10y agoI believe many distributions disable pcntl_* functions even in a php-fpm environment. You can make it work, of course, but it's not the default.
- Sanddancer 10y agoI've read reports on the incompatibilities, but the odd part is that you can popen which, under FreeBSD at least, is a fairly thin wrapper around vfork() and execve() makes that feel suspect. It may be a bit more work, but commands like this still should be treated as special.