English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi
I want to create a flash chat room using only flash and php (no MySQL, Xml or other way in which there is an intermediate file involved). Why? Because I want the messages to appear instantly (I don’t want the users to wait for they’re actual message to be written in a temporary file which after a while to be viewed by the other client) and the amount of data transferred to be minimal (that way the server won’t jam if more users are using it).


Thank you

2006-07-01 10:51:16 · 2 answers · asked by immortall_shadow 1 in Computers & Internet Programming & Design

2 answers

You could actually do this with Ajax (ie Asynchrnonous javascript, and a php server script.) Ok so there's still some polling, but realize that you will never be able to have a successful peer to peer chat application. Reason being: firewalls and NAT.

2006-07-01 13:52:11 · answer #1 · answered by Gizmo L 4 · 0 0

A good idea. You server side code only provides / maintains connections and identities while your client code runs direct connections to the the other clients. Also a little risky in terms of security.

I know this is done in java easily, so if you found java code you could probably replicate it in flash (but I am not familiar with flash so take it as a guess).

2006-07-01 10:58:00 · answer #2 · answered by sheeple_rancher 5 · 0 0

fedest.com, questions and answers