To get the pid id:

<?php
  exec("cat [path to pid file]", $pid); echo $pid[0];
?>

raditha dissanayake wrote:
> Mário Gamito wrote:
> 
>> Hi,
>> 
>> I need to kill (squid) -D
>> pidof (squid) -D gives an error :(
>> 
> man pidof
> we have nowed moved to off topic territory.
> 
> 
> --
> Raditha Dissanayake.
> ------------------------------------------------------------------------
> http://www.radinks.com/sftp/         |
> http://www.raditha.com/megaupload Lean and mean Secure FTP applet
> with | Mega Upload - PHP file uploader Graphical User Inteface. Just
> 128 KB | with progress bar. 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to