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

You will need to do a reload of the page so that you can get information
from the server to the client via the web. Now you can also write a
server-client application that allows the server and client to talk via
connects (sockets) however, this is a very complex subject and might be
a huge overkill for what u are trying to accomplish.

Using javascript to reload the page every 10 minutes might be what you
are looking for.

--
BigDog


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to