PHP and Web Servers probably make a bad choice for what is essentially a real time application. PHP and web servers expect to serve up a page of essentially HTML(and Javascript, or Java Applets), then close the connection to a browser so that it can handle the requests of others, and not deal with that connection again until the browser makes another connection, usually as a result of a hotlink click, or submit.
There is a way to simulate what you want using JavaScript (if PHP can output HTML, it can also output Javascript). Check http://www.hotscripts.com in their JavaScript section for routines to perform 3 functions, 1. a routine which will cause the a page to request a refresh every 10 seconds or so, there by requesting the same page, which your PHP can fill with the latest (real-time?) data. 2. a routine for using JavaScript to display data on the status line. 3. a routine for displaying the time (using the clock on the browser machine). hope this helps, Warren Vail Tools, Metrics & Quality Processes (415) 667-7814 Pager (877) 774-9891 215 Fremont 02-658 -----Original Message----- From: DoL [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 9:12 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Console application with PHP Hi All I am trying to write something similar to a server console display, is it a good idea to use PHP? Wondering how things like 1. server clock (similar to a clock applet) 2. server status can be displayed with PHP code? Note: I need to display the above two in a continuous fashion on the status bar!! Many Thanks Dominic -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php