Ping Script

SpaceshipSpaceship
NamecheapNamecheap
SpaceshipSpaceship
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
•••
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
•••
crontab -e

* 10/* * * * root: ping whateverhostyouwanttopint
 
0
•••
im not so great with php so can i get some help?
 
0
•••
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
•••
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
•••
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
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back