PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am trying to get the latency of a host with ping using iis6. I am not sure whether or not I have configure the permissions correctly for exec(). But this is the code I am currently using that yields the error.
Pingen naar google.com ї216.239.57.99] met 32 byte gegevens: Antwoord van 216.239.57.99: bytes=32 tijd=162 ms TTL=236 Antwoord van 216.239.57.99: bytes=32 tijd=161 ms TTL=236 Antwoord van 216.239.57.99: bytes=32 tijd=161 ms TTL=236 Antwoord van 216.239.57.99: bytes=32 tijd=161 ms TTL=236 Ping-statistieken voor 216.239.57.99: Pakketten: verzonden = 4, ontvangen = 4, verloren = 0 (0% verlies).De gemiddelde tijd voor het uitvoeren van ‚‚n bewerking in milliseconden: Minimum = 161ms, Maximum = 162ms, Gemiddelde = 161ms
Thanks for pointing me in the right direction again. . I have managed to get it working! I had to give the web service account access to the command line, cmd.exe.
My original code works as well.
I would use apache if I could but the servers that the site will be on uses iis and can't be changed.