RE: [PHP] PHP/HTML Question
| From: | Jay Blanchard | Date: | Thu, 17 Jul 2003 15:13:43 +0000 |
| Subject: | RE: [PHP] PHP/HTML Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-155631@lists.php.net to get a copy of this message | ||
[snip]
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.
[/snip]
Sounds like a job for sockets or curl, but there would have to be a
reload.