[PHP-DEV] RE: [PHP] Console application with PHP

2002-05-16 Thread Vail, Warren

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 Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] RE: [PHP] Re: [PHP-DEV] Console application with PHP

2002-05-16 Thread Vail, Warren

Does this work on Windows, or is it restricted to Linux/unix?


Warren Vail
Tools, Metrics  Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658


-Original Message-
From: Markus Fischer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 11:58 AM
To: DoL
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] Re: [PHP-DEV] Console application with PHP


Hi,

all is possible. I suggest taking a look at
http://gtk.php.net/ and
http://www.php.net/manual/en/features.commandline.php for a
start.

- Markus

On Fri, May 17, 2002 at 12:12:20AM +0800, DoL wrote : 
 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 Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
-
I mean When in doubt, blame mcrypt is more often right than wrong :)
Always right, never wrong :)
- Two PHP developers who want to remain unnamed

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

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