On Tue, Jul 22, 2014 at 12:59:04PM -0500, wireless wrote:
> If have to audit the code(s) and find the opportunities to use popen.
> You have to understand that popen in php, and other scripting languages,
> is not the same as popen as it is in a "C" program.
I've actually now got some example code
php -q test_fping.php
NOMATCH 127.0.0.1 : [0], 84 bytes, 0.06 ms (0.06 avg, 0% loss)
NOMATCH 127.0.0.1 : [1], 84 bytes, 0.05 ms (0.05 avg, 0% loss)
MATCH
Array
(
[0] => 127.0.0.1 : xmt/rcv/%loss = 2/2/0%, min/avg/max = 0.05/0.05/0.06
[1] => 2
[2] => 2
[3] => , min/avg/max = 0.05/0.0