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.
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.
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. :]