Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Looking for a programmer (https://www.warriorforum.com/programming/470574-looking-programmer.html)

discustipated 15th October 2011 03:51 PM

Looking for a programmer
 
Looking to have a pinging device like www.pingdevice.com. Pm me if interested. Send any portfolio, recomendations, cost for service, etc...

Codez 17th October 2011 06:39 AM

Re: Looking for a programmer
 
Code:

<?php
/* our simple php ping function */
function ping() {
exec(sprintf('ping -c 1 -W 5 %s', escapeshellarg()), , );
return  === 0;
}
/* check if the host is up  can also be an ip address */
 = 'www.example.com';
 = ping();
/* optionally display either a red or green image to signify the server status */
echo '<img src="'.( ? 'on' : 'off').'.jpg" alt="'.( ? 'up' : 'down').'" />';
?>

PHP Ping Script to check remote server or website | Darian Brown – Webmaster's Blog and Portfolio


All times are GMT -6. The time now is 05:07 AM.