Carved in mystic runes upon the very living rock, the last words of Sven
Dzepina of comp.lang.php make plain:
"Sven Dzepina" <ma**@styleswitch.de> schrieb im Newsbeitrag
news:3f***********************@newsread2.arcor-online.net... Hello people,
I want to check with a php script if a port / serverservice is down.
It would be great if I can check the ping time, too.
But how I can realize that?
Please,
I need further informations...
First of all, don't top post.
Second, you not only have to read the manual, you have to understand it.
Of course it doesn't say anything about ping - it's the manual entry for
the exec() function, und es sagt:
"Ist der Parameter /array/ angegeben, wird dieses mit jeder Zeile des
Befehlsausgabe gefüllt."
http://www.php.net/manual/de/function.exec.php
Read it and understand it. That should get you going.
--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/