http访问记录php脚本进程号 //获取apache进程id$pid = exec('echo $PPID');error_log(date('Y-m-d H:i:s').'----'.$pid." ",3,'/var/tmp/getcom.pid');