Question

php file.php &

Comment obtenir PID du processus d'arrière-plan file.php?

Était-ce utile?

La solution

Je crois que vous êtes à la recherche de la fonction getmypid()

http://php.net/manual/en/function.getmypid.php

posix_getpid() semble faire la même chose ...

http://php.net/manual/en/function.posix -getpid.php

Autres conseils

getmypid() fait ce que vous avez besoin.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top