Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 15th Oct 2011, 03:51 PM   #1
SERPDEMON
 
discustipated's Avatar
 
Join Date: 2011
Posts: 226
Thanks: 79
Thanked 18 Times in 15 Posts
Default
Looking for a programmer
Share on: 
fb share twitter share gplus share more share

Looking to have a pinging device like www.pingdevice.com. Pm me if interested. Send any portfolio, recomendations, cost for service, etc...
discustipated is offline  
Unread 17th Oct 2011, 06:39 AM   #2
Professional Webdeveloper
 
Join Date: 2011
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Looking for a programmer
Share on: 
fb share twitter share gplus share more share

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
Codez is offline  
Closed Thread


Bookmarks

Tags
programmer


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




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