On Linux you can check if a process is still running by verifying if the PID exists in the /proc directory :
<?php
if(file_exists('/proc/'.$pid))
{
echo 'The process is still running.';
}
?>
On Linux you can check if a process is still running by verifying if the PID exists in the /proc directory :
<?php
if(file_exists('/proc/'.$pid))
{
echo 'The process is still running.';
}
?>