in reply to Re: Re: Parent process name
in thread Parent process name

An easier way to get the parent process ID would be to call the getppid() function.

$parent_id = getppid();