RE: [PHP] PHP Chat REALTIME

2002-01-23 Thread Andrew Chase
> -Original Message- > From: Joffrey van Wageningen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 22, 2002 7:35 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] PHP Chat REALTIME > > the real problem is how to get the data to the client without > use of a soc

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Rodolfo Gonzalez
On Tue, 22 Jan 2002, Joffrey van Wageningen wrote: > socket to the server (read: the php script running). the only realy useful > language is javascript becouse flash and java are not portable on some > platforms. the next problem is javascript isnt able (for security reasons) > to open a socket t

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Joel Boonstra
> I need to build a php-chat (online support system), but in realtime. > I've develope a system that refresh in browser client in 5 seconds. But > i need a system that works in realtime, what i meen is when a client or > the server send a message, the browser refresh when a message was sent. > All

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Joffrey van Wageningen
> i haven't been following this, but have you guys thought of ircg? > http://php.net/ircg ircg is a lot of fun and could be used as the server system for message management, the real problem is how to get the data to the client without use of a socket ircg also needs an ircd which is a little t

RE: [PHP] PHP Chat REALTIME

2002-01-22 Thread James Cox
Ok, i haven't been following this, but have you guys thought of ircg? http://php.net/ircg James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PRO

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Bogdan Stancescu
> the 'smarter' way would be having a client side programming language open a > socket to the server (read: the php script running). the only realy useful > language is javascript becouse flash and java are not portable on some > platforms. the next problem is javascript isnt able (for security re

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Joffrey van Wageningen
> > > I dont think its possible without Java programing. > > its posible to keep a http connection open and trust on flush() to send some > > data to the client, if this data contains javascript you could update a > > window or something... if you want to make this safe: make sure you use a > > c

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Bogdan Stancescu
I've been kidding around with a chat experiment of my own a few weeks ago and stumbled in the same problem with refresh, so I'm quite interested in this discussion. So, ok, I didn't know about flush() at all, but how do you keep the http connection open in the first place? Just keep looping in the

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Joffrey van Wageningen
> I dont think its possible without Java programing. its posible to keep a http connection open and trust on flush() to send some data to the client, if this data contains javascript you could update a window or something... if you want to make this safe: make sure you use a combination of a open

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Ben-Nes Michael
- From: "Nuno Mariz" <[EMAIL PROTECTED]> To: "Ben-Nes Michael" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, January 22, 2002 1:02 PM Subject: Re: [PHP] PHP Chat REALTIME That was not the problem, i need something that keep the conection betwe

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Nuno Mariz
That was not the problem, i need something that keep the conection between client and server. On Tue, 2002-01-22 at 10:51, Ben-Nes Michael wrote: > The server can controll the Refresh and the cache expiry through headers > sent when the page is requested by the client. > > add this to expire cli

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Ben-Nes Michael
The server can controll the Refresh and the cache expiry through headers sent when the page is requested by the client. add this to expire client content every time a request for the same page is sent. header("Pragma: no-cache"); add this to refresh client content every 5 sec http://www.doamin.c