I have a quick question about PHP and HTML. I have a page that is supposed to update the "status" of hosts by pinging each host and displaying the result. I would like to get the page to the point that I can have something (either PHP or JavaScript or the like) ping every 10 seconds or so and update the page (I have text boxes for the status) WITHOUT reloading it. Does anyone know if this is possible with PHP? Or does anyone know of another way I could do it? JavaScript (at least any of it that I've seen) doesn't have a function to run a command on the server (which makes sense, since it is mainly client-side), and I don't know about CGI.
Thanks, Nick
Don't rely on a browser to do this...have the "ping" script run on a cron, and update the status in a database or flat file. You can even have the script send out an email (I have heard that some people have gotten IM to work thru php, but I don't know if that really works) if a box is down.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php