Re: PHP/HTML Question

From: Date: Thu, 17 Jul 2003 15:22:28 +0000
Subject: Re: PHP/HTML Question
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-155633@lists.php.net to get a copy of this message
Ray Hunter wrote:
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 Thanks, that's all I needed to know. It sounds like from what Jay Blanchard said you need a reload with sockets, anyway, and yes, that would probably be overkill.
Thanks, Nick -- You can't make a difference until you are willing to be different! -- Nick Couchman SEAKR Engineering, Inc. 6221 South Racine Circle Centennial, CO 80111 Direct: (303) 784-7724 Main: (303) 790-8499 Fax: (303) 790-8720

« previous php.general (#155633) next »