Home > Article > Backend Development > How to achieve instant communication in php_PHP tutorial
Question
How to communicate in real time
Solution
Recently I want to make a chat program like the latest web version of QQ and online communicator
I now have an online chat program written in VB. What are the functions of using the socket interface in PHP
Is the interface function of php sufficient?
Reference answer
AJAX for BS, FLEX for CS
Reference answer
I learned it and I think I can use it in the future. [img]http://www.111cn.cn/bbs/images/smilies/default/02.gif[/img]
Reference answer
Do it better with Flash!
Reference answer
Want Want web version feels very good
Reference answer
while(1){
$db->getAll(XXXXX);
}
Reference answer
What do you mean?
Reference answer
Continuously read data from the database, then capture the browser's closing event, and terminate the program after the browser is closed. And prompt the other end that the other party is not online.
Reference answer
I don’t know how to flash
Also, will not reading the database in sections put too much burden on the server
Reference answer
Original post by yafeikf on 2009-1-3 01:29 [url=http://bbs.111cn.cn/redirect.php?goto=findpost&pid=813011&ptid=100164]Link tag [img]http://bbs. 111cn.cn/images/common/back.gif[/img][/url]
while(1){
$db->getAll(XXXXX);
}
The execution of this script will time out.