Originally posted by cahva
use shell_exec instead of plain exec.
thank you but it didn't work .
I tried also
<?
$domain="yahoo.com";
$run = shell_exec("/bin/ping -c5 -n -q -w5 $domain 2>&1");
echo $run;
?>
adding 2>&1 , but now I receive this
ping: icmp open socket: Operation not permitted
?!
Thanks