I want to develop a web chat application. Can it be done using PHP, I have read that it can be done using Java tools, but I do not want to use it.
Any recommendations of the tools to use for developing it.

Member Avatar for diafol

You can do it via php, but then you'd have to refresh the page every time to see any new messages. Ajax (or Comet) are usually used in conjunction with a server-side language like PHP to make it work.

Usually, the js is trivial, you just need a setInterval at about 10 seconds or so. This script then calls the db or whatever you're using to store the messages and updates the chat display area.

http://www.w3schools.com/jsref/met_win_setinterval.asp

commented: Very helpful, well, at least for me! +1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.