Re: [PHP] Shoutbox suggestion needed

2009-11-17 Thread Michael Kubler
The main issue with these systems is updating the client on a regular 
enough basis.
If the content is time critical, like with Facebook chat, then you need 
to do long polling.


However for a Shoutbox, because it's more like an IRC channel with 
people 'shouting' to a channel, you can probably just set the client to 
automatically update on a regular basis. Or even more advanced, would be 
to get it to check in increasing intervals. Firstly it checks 0.5s 
later, then 1s later, then 2s, 4s, 8s, 16s, with a limit of 60s (i.e it 
checks at least once a minute for an update), upon new content being 
received the time is reset back to the 0.5s


If you need to do long polling  
then look into the Tornado Webserver  which 
Friendfeed , and more recently, Facebook use 
(for their LiveFeed system).
For a PHP based implementation check this out 
.





Michael Kubler
*G*rey *P*hoenix *P*roductions 
Mobile : 0433483008

I believe in a better world. I support the Zeitgeist Movement 
.




Ashley Sheridan wrote:

On Mon, 2009-11-16 at 12:06 -0500, Paul M Foster wrote:

  

On Mon, Nov 16, 2009 at 02:46:45PM +, Ashley Sheridan wrote:



I don't know of anything you can use like this, especially that runs
purely on Ajax. Just take a look at Facebook chat. That's Ajax, and
fails and falls over on a constant basis to the point where it is almost
useless. Imho, Java seems to be pretty good at this sort of thing, and
there are plenty of free options out there that you could use.
  

It's often been argued back and forth whether people have Javascript
turned off. I suspect the vast majority of people have Javascript turned
on. However, Java is another story. You may find that many more have it
turned off.

Paul

--
Paul M. Foster





Yeah, but then, generally, you can tell the people visiting this site
what they need enabled, as it looks like the visitors are going to be a
select few. Java is available on all the main browsers, and generally
only needs one to accept the applet. For a chat application to be
written using only Ajax technology, well, like I said before, if
Facebook tried it and still can't get it right with all the financial
backing they have, what hope for someone to release this sort of thing
open source and Facebook not be aware of it?

Thanks,
Ash
http://www.ashleysheridan.co.uk



  


Re: [PHP] Shoutbox suggestion needed

2009-11-16 Thread Ashley Sheridan
On Mon, 2009-11-16 at 12:06 -0500, Paul M Foster wrote:

> On Mon, Nov 16, 2009 at 02:46:45PM +, Ashley Sheridan wrote:
> 
> > 
> > I don't know of anything you can use like this, especially that runs
> > purely on Ajax. Just take a look at Facebook chat. That's Ajax, and
> > fails and falls over on a constant basis to the point where it is almost
> > useless. Imho, Java seems to be pretty good at this sort of thing, and
> > there are plenty of free options out there that you could use.
> 
> It's often been argued back and forth whether people have Javascript
> turned off. I suspect the vast majority of people have Javascript turned
> on. However, Java is another story. You may find that many more have it
> turned off.
> 
> Paul
> 
> -- 
> Paul M. Foster
> 


Yeah, but then, generally, you can tell the people visiting this site
what they need enabled, as it looks like the visitors are going to be a
select few. Java is available on all the main browsers, and generally
only needs one to accept the applet. For a chat application to be
written using only Ajax technology, well, like I said before, if
Facebook tried it and still can't get it right with all the financial
backing they have, what hope for someone to release this sort of thing
open source and Facebook not be aware of it?

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] Shoutbox suggestion needed

2009-11-16 Thread Paul M Foster
On Mon, Nov 16, 2009 at 02:46:45PM +, Ashley Sheridan wrote:

> 
> I don't know of anything you can use like this, especially that runs
> purely on Ajax. Just take a look at Facebook chat. That's Ajax, and
> fails and falls over on a constant basis to the point where it is almost
> useless. Imho, Java seems to be pretty good at this sort of thing, and
> there are plenty of free options out there that you could use.

It's often been argued back and forth whether people have Javascript
turned off. I suspect the vast majority of people have Javascript turned
on. However, Java is another story. You may find that many more have it
turned off.

Paul

-- 
Paul M. Foster

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



Re: [PHP] Shoutbox suggestion needed

2009-11-16 Thread Stuart
2009/11/15 Cemal Eker :
> I just want to implement a shoutbox script for an e-learning application.
> Searched Google for possible solutions but I just want to know what other
> developers use.
>
> AJAX and GPL is a must.

Strange requirements, but whatever.

A shoutbox is pretty rare on anything except sites aimed at teenagers
so I'm not surprised you haven't had many people jump in and tell you
what they're using, because they're not.

If this is for chatting with the site admin you may want to look into
one of the live support options rather than a shoutbox. They're
private (although I'm sure some have a public option) and they will
provide a much better system for the admin to track multiple
conversations. I really think a shoutbox is the wrong solution for
this particular problem.

-Stuart

-- 
http://3ft9.com/

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



Re: [PHP] Shoutbox suggestion needed

2009-11-16 Thread Ashley Sheridan
On Mon, 2009-11-16 at 16:00 +0200, Cemal Eker wrote:

> Thanks for your response, but shoutbox isn't a online exam system. Shoutbox
> is a chat-like feature that generally work with ajax. Where you can post
> quick messages to website. We'll use it for a quick communication with admin
> of system.
> 
> Here's what wiki says about Shoutbox http://en.wikipedia.org/wiki/Shoutbox.
> ---
> “Talk is cheap. Show me the code” - Linus Torvalds
> 
> 
> 
> On Mon, Nov 16, 2009 at 3:16 PM, tedd  wrote:
> 
> > At 1:12 PM +0200 11/15/09, Cemal Eker wrote:
> >
> >> Hello,
> >>
> >> I just want to implement a shoutbox script for an e-learning application.
> >> Searched Google for possible solutions but I just want to know what other
> >> developers use.
> >>
> >> AJAX and GPL is a must.
> >>
> >
> >
> > Forgive me, but I don't know what a "shoutbox" is?
> >
> > As for an online exam that uses ajax, does this work?
> >
> > http://webbytedd.com/b/exam/
> >
> > If so, you are free to use anything you find there under GPL.
> >
> > Cheers,
> >
> > tedd
> > --
> > ---
> > http://sperling.com  http://ancientstones.com  http://earthstones.com
> >


I don't know of anything you can use like this, especially that runs
purely on Ajax. Just take a look at Facebook chat. That's Ajax, and
fails and falls over on a constant basis to the point where it is almost
useless. Imho, Java seems to be pretty good at this sort of thing, and
there are plenty of free options out there that you could use.

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] Shoutbox suggestion needed

2009-11-16 Thread Cemal Eker
Thanks for your response, but shoutbox isn't a online exam system. Shoutbox
is a chat-like feature that generally work with ajax. Where you can post
quick messages to website. We'll use it for a quick communication with admin
of system.

Here's what wiki says about Shoutbox http://en.wikipedia.org/wiki/Shoutbox.
---
“Talk is cheap. Show me the code” - Linus Torvalds



On Mon, Nov 16, 2009 at 3:16 PM, tedd  wrote:

> At 1:12 PM +0200 11/15/09, Cemal Eker wrote:
>
>> Hello,
>>
>> I just want to implement a shoutbox script for an e-learning application.
>> Searched Google for possible solutions but I just want to know what other
>> developers use.
>>
>> AJAX and GPL is a must.
>>
>
>
> Forgive me, but I don't know what a "shoutbox" is?
>
> As for an online exam that uses ajax, does this work?
>
> http://webbytedd.com/b/exam/
>
> If so, you are free to use anything you find there under GPL.
>
> Cheers,
>
> tedd
> --
> ---
> http://sperling.com  http://ancientstones.com  http://earthstones.com
>


Re: [PHP] Shoutbox suggestion needed

2009-11-16 Thread tedd

At 1:12 PM +0200 11/15/09, Cemal Eker wrote:

Hello,

I just want to implement a shoutbox script for an e-learning application.
Searched Google for possible solutions but I just want to know what other
developers use.

AJAX and GPL is a must.



Forgive me, but I don't know what a "shoutbox" is?

As for an online exam that uses ajax, does this work?

http://webbytedd.com/b/exam/

If so, you are free to use anything you find there under GPL.

Cheers,

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



[PHP] Shoutbox suggestion needed

2009-11-15 Thread Cemal Eker
Hello,

I just want to implement a shoutbox script for an e-learning application.
Searched Google for possible solutions but I just want to know what other
developers use.

AJAX and GPL is a must.

Thanks.
---
“Talk is cheap. Show me the code” - Linus Torvalds