views:

114

answers:

4

Hi at all, I need to create a simple web chat ( like facebook chat )

What language do I need to use ( server-side ) ?

Erlang ? PHP ? Python ? Ruby ? ecc

Are there any examples ?

Thanks ^_^

A: 

Actually for the best UI you can use Silverlight, by using the power of mighty .NET. It's C# you know.

Halo
Right, because silverlight has a huge install base.
ryeguy
it's not that subjective after all.
Halo
yes, with its huge ui capabilities SL is the best.
erasmus
First of all, he's asking for a server side language. Second of all, silverlight is a terrible idea even for the client side. Javascript is probably the best option, but even flash is better than silverlight. Silverlight does not have a big enough userbase, and isn't *reliably* implemented cross-platform, so it would not be a wise choice.
ryeguy
+2  A: 

Most web-based chat apps I've seen are a combination of server-side code (of various flavors) and client-side javascript. On balance I'd say it doesn't matter what you use on the server side, go with what you know.

Dave Swersky
+1  A: 

You might want to check out Node.js. It is server-side javascript, so it's easier to communicate with client-side javascript.

As a matter of fact, they have a chat demo here along with the source code.

Node.js is MADE for this type of thing. I'd recommend it.

ryeguy
A: 

The answer is that you can use any language you want on the server side, just like any other programming exercise. Really.

You'll save yourself a lot of time and headaches if you use something that's already been written, though. XMPP (and any decent XMPP server) has a web interface built in to the protocol, and any decent server implements it.

On the client, I use a JavaScript library called Strophe to connect. There's also JSJaC, extracted from a pre-built open-source web chat client called JWChat.

This should get you started.

Jim Puls