@bokehJul 20.2006 — #AJAX has nothing to do with PHP. It is a javascript feature built in to current browsers which can request webpages in the background. Of course PHP could be used to build those pages but it wouldn't make any difference if the server side pages were just plain old .txt documents. What are you trying to do?
But if there is a better way... I would like to have a browser window open on one PC and another open on a 2nd PC, and 2 people can talk through it, and it will act as an IM system.
@cafrowJul 20.2006 — #That would be pretty cool. Do a google search for AJAX tutorials, basicly Ajax lets you send info to the server and read a response from the server, so a simple chatroom would be pretty cool to do. You would use PHP to handle the input from Ajax and feed it some output.
I've seen several IM systems work with AJAX, and I must say after you get the hang of it itis really easy. Not that im a guru or anything but found this page pretty useful
@bokehJul 20.2006 — #That would be pretty cool. Do a google search for AJAX tutorials, basicly Ajax lets you send info to the server and read a response from the server, so a simple chatroom would be pretty cool to do. You would use PHP to handle the input from Ajax and feed it some output.[/QUOTE]http is not an appropriate protocol for chatservers.
@SpectreReturnsJul 22.2006 — #The internet was not invented for Porn sites either, but look how well thats working out. ?[/QUOTE] That... really isn't relevant. HTTP demands a lot more headers so that it can transfer multiple types of information and be understood. A chat server simply requires a "who: what" message, cutting down on size of packets and thus increasing speed. Probably some other things I'm forgetting, but I've had a long day.
By the way, I'm back and ready to fight and conquer the evil and opperssion on these boards!
@Vectorman211Jul 22.2006 — #I would have to agree that a HTTP based chat system has it's overhead and would create an unnecessary toll on the web server itself. On the other hand, AJAX would be the perfect method (AJAX is a method of programming, not a language) to do so. It does use XMLHttp Requests which would significantly reduce overhead.
@bokehJul 22.2006 — #AJAX is no different whatsoever. It functions using standard http requests just as with a any standard http page load. Http is a client pull protocol. For a chat program a server push protocol is needed to avoid continual and unnecessary requests.