Re: Creating A Chat?

From: Date: Tue, 21 Apr 2009 11:41:59 +0000
Subject: Re: Creating A Chat?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-291727@lists.php.net to get a copy of this message
Please read things more carefully before responding... I was answering the question, not asking it. -Stuart 2009/4/21 David Négrier <d.negrier@thecodingmachine.com>: > > Hi Stuart, > > Indeed, in order to create a chat, you need to be able to push messages > from the server to the browser. > There are several techniques in order to do that. > One is the long polling technique (or Reverse Ajax). It requires a lot of > Javascript. > The other is going through a Flash server. > > In both cases, it is quite time consuming to implement correctly those, > especially for all browsers. > I would advice you to use existing libraries or services in order to > implement your chat. > > Here are 2 solutions: > > You can try Xaja (http://www.thecodingmachine.com/ext/xaja). This is an > open-source Reverse Ajax framework. > > Or you can use Apideo (http://www.apideo.com). This is service including a > Javascript library that can be used to send events across browsers. The > service is free for non commercial use. > > Disclaimer: I've been involved in both project, so this is not a definitive > list. There might be other projects allowing you to do so. > > Regards, > David. > > > > > On Tue, 21 Apr 2009 11:57:08 +0100, Stuart <stuttle@gmail.com> wrote: >> 2009/4/20 Nitsan Bin-Nun <nitsan@binnun.co.il>: >>> Hi Guys, >>> >>> I have created few chats in the past, but I'm trying to create a new one >>> which saves on HTTP requests and do not become an overkill to the server >>> as >>> more users get in. >>> >>> The chat is a one on one, I'm trying to achieve this: >>> * A user sends a message >>> * The message is not saved/save temporarily on the server >>> * The message is showed to the other user >>> >>> Any ideas how i should implement this? >>> >>> I have no idea how to build it in the most efficiency way, any notes or >>> recommendations or >>> anything that I should pay attention to during development will be very >>> appreciated. >> >> Not sure what you mean by "chats" but is it anything like this... >> >>     http://pnotes.org/ >> >> If so then I'm happy to talk about how I implemented it. Unfortunately >> I can't release the code because it was developed for a client, but >> it's pretty simple in concept. >> >> -Stuart >> >> -- >> http://stut.net/ >

« previous php.general (#291727) next »