by aaronholbrook · 8y ago · 0 comments
I'm not sure if you're thinking it would be web server dependent, but NGINX is the bigger share of the market. (Ideally it wouldn't matter what the web server is though).
If anyone knows of a good way to get a PHP process's parent server pid (regardless of what server it's running on), please let me know :)
On linux you can get the master process through posix-getppid (http://php.net/manual/en/function.posix-getppid.php) but this won't work on windows and has the same limitations as above.
Have you thought about having a linux daemon/agent that runs in the background and keeps the ENV in sync?