Ping Script

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch

Nunim

Established Member
Impact
1
Ok I need a script that will send a ping every 5 mins or so and report back the results to a php page... can anyone help me?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
take a look at http://uk.php.net/function.exec take particular interest in the comment at the bottom by bishupaulose at yahoo dot com

it shows you the command you actually need, use this and run it as a cron job
 
0
Close
crontab -e

* 10/* * * * root: ping whateverhostyouwanttopint
 
0
Close
im not so great with php so can i get some help?
 
0
Close
You mean you want to post the result to a php page?
You can use crontab to ping a host and then output the results to a file. Make the php script read the result file and output it on the page.
 
0
Close
Ok here is what I want, I need a script that will ping an IP, this script or another script will take the results and post them onto a php page in the form of online or offline.
 
0
Close
You obviously requires crontab to do this schedually.
However, You can have the script to ping and output the result immidately, but the downside is, it may take a while to execute it. :]
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back