&1"; $phpv2=preg_replace("/[^0-9\.]+/","",phpversion()); $phpv=$phpv2-0; // Verifie la resolution de urlse3 si reponse 0% alors la resolution interne fonctionne if ($phpv>=4.2) { $com="ping -c 1 -w 1 $adress[2] | awk '/packet/ {print $6}'"; } else { $com="ping -c 1 $adress[2] | awk '/packet/ {print $7}'"; } //die($com); $fp2=exec("$com",$out,$log); $sortie=trim(implode(' ',$out)); //die($sortie); if ( $sortie == "0%" ) die("1"); else die("0"); ?>