Reply to Re: chat program

Your name:

Reply:


Posted by J.O. Aho on 10/13/97 11:33

Gernot Frisch wrote:
> Hi,
>
> how would I make a chat program, in php/javascript that causes the
> least traffic for the clients. Thus: Only reloading the contents when
> there is some new text available...
>
> Can this be done? The Server can't actively send data to the client,
> can it?

No, this has to be requested by the client.


> Would I have to set a 'refresh', so the page gets reload every 2
> seconds?

You can use meta tag or header to do this, here is a meta tag:
<meta http-equiv="refresh" content="2">


If you have to have a second class chat program, you should look into java
(not javascript), but if you want a first class chat program, then just use IRC.


//Aho

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация