phpwebsocket

所属分类:WEB开发
开发工具:PHP
文件大小:461KB
下载次数:76
上传日期:2014-03-19 15:15:23
上 传 者spudn90
说明:  HTML5+websocket实现PHP简单聊天室,含使用文档+源代码,开发语言:HTML5,Javascript,php,开发工具:Phpstorm 4.0,网上基本找不到一个成功用php写server的案例,比较少商业用途会使用这个脚本语言来实现server。html5 websocket的根本通讯还是基于http get,所以在性能上,理论值会比tcp socket低一点点。   PHP的垃圾回收机制,做socket长连接,是有问题的。   关于多线程,Php本来是单线程的,如果要做到多线程,可以做,但是一些文章说做出来的那个效果,是假的多线程,并不是实际意义上的多线程处理事务(文章说的,尚未证实)。php server长时间运行,是会挂起来的,要定期重启server。可能是由于长连接的原因。   因采用HTML5技术,所以你的浏览器需要支持HTML5,推荐使用火狐或Chrome,Safari等
(HTML5+ websocket achieve a simple PHP chat rooms, including the use of documentation+ source code, development languages​ ​ : HTML5, Javascript, php, development tools: Phpstorm 4.0, basically find a successful online server with php written cases, relatively few commercial uses will using this scripting language to implement server. html5 websocket communication is based on the fundamental http get, so the performance will be lower than the theoretical value tcp socket a little bit. PHP s garbage collection mechanism, so long connection socket, there is a problem. Multithreading, Php originally single-threaded, multi-threading if you want to do, you can do it, do it, but some articles say that the effect is a fake multi-threaded, multi-threaded processing services is not practical sense (article says I have not yet confirmed). php server long run, it will hang up, periodically restart the server. May be due to the long connection. Due to the use of HTML5 technology, so)

文件列表:
phpwebsocket\php+websocket+html5+apache.docx (482335, 2013-06-20)
phpwebsocket\phpwebsocket\.idea\.name (12, 2012-05-11)
phpwebsocket\phpwebsocket\.idea\encodings.xml (171, 2012-05-11)
phpwebsocket\phpwebsocket\.idea\misc.xml (266, 2012-05-11)
phpwebsocket\phpwebsocket\.idea\modules.xml (287, 2012-05-11)
phpwebsocket\phpwebsocket\.idea\phpwebsocket.iml (292, 2012-05-11)
phpwebsocket\phpwebsocket\.idea\scopes\scope_settings.xml (143, 2012-05-11)
phpwebsocket\phpwebsocket\.idea\vcs.xml (173, 2012-05-11)
phpwebsocket\phpwebsocket\.idea\workspace.xml (19497, 2012-05-13)
phpwebsocket\phpwebsocket\client\index.html (5528, 2012-05-11)
phpwebsocket\phpwebsocket\client\my.html (1266, 2012-05-11)
phpwebsocket\phpwebsocket\client\phpinfo.php (196, 2012-05-11)
phpwebsocket\phpwebsocket\server\server.php (1039, 2012-05-11)
phpwebsocket\phpwebsocket\server\WebSocketServer.class.php (9141, 2012-05-11)
phpwebsocket\phpwebsocket\.idea\scopes (0, 2013-06-20)
phpwebsocket\phpwebsocket\.idea (0, 2013-06-20)
phpwebsocket\phpwebsocket\client (0, 2013-06-20)
phpwebsocket\phpwebsocket\server (0, 2013-06-20)
phpwebsocket\phpwebsocket (0, 2013-06-20)
phpwebsocket (0, 2013-06-20)

近期下载者

相关文件


收藏者