how to ping

A

Anonymous

Guest
Hi !

anyone can tell me why this little script does not work ?
( I receive following error
ping: icmp open socket: Operation not permitted )


Code:
<? 
$domain="yahoo.com"; 
$run = shell_exec("/bin/ping -c5 -n -q -w5 $domain 2>&1"); 
echo $run; 
?>

Thanks 1000X!
 
unluckly pear link didn't help .It still require root and my php scripts run nobody .Searching a perl script :cry:
 
Back
Top