No v php na todle funkce neni musis pouzit externi program

napr.:

$vysledek1=exec("ping.exe 212.20.80.225 >pingtest.txt");

a pak si z toho souboru precist hodnoty

$fd = fopen ('./pingtest.txt',"r");
while (!feof ($fd)) {
$buffer = fgets($fd, 4096);