Getting the process identifier
Retrieve the current Process Identifier:
Any active process is identified by operating system by a Process IDentifier (PID).
This number may be used to kill or manage the process.
In the shell, to retrieve the list of processes with the PID, you can use the
In a PHP script you can retrieve the current process identifier with
It returns an integer of the identifier or
false if an error occours.