//获取apache进程id$pid = exec('echo $PPID');error_log(date('Y-m-d H:i:s').'----'.$pid." ",3,'/var/tmp/getcom.pid');