文件名称:phpwebsocket
-
所属分类:
- 标签属性:
- 上传时间:2014-03-19
-
文件大小:460.94kb
-
已下载:2次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
HTML5+websocket实现PHP简单聊天室,含使用文档+源代码,开发语言:HTML5,Javascr ipt,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, Javascr ipt, php, development tools: Phpstorm 4.0, basically find a successful online server with php written cases, relatively few commercial uses will using this scr ipting 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
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, Javascr ipt, php, development tools: Phpstorm 4.0, basically find a successful online server with php written cases, relatively few commercial uses will using this scr ipting 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
phpwebsocket/phpwebsocket/.idea/.name
phpwebsocket/phpwebsocket/.idea/encodings.xml
phpwebsocket/phpwebsocket/.idea/misc.xml
phpwebsocket/phpwebsocket/.idea/modules.xml
phpwebsocket/phpwebsocket/.idea/phpwebsocket.iml
phpwebsocket/phpwebsocket/.idea/scopes/scope_settings.xml
phpwebsocket/phpwebsocket/.idea/vcs.xml
phpwebsocket/phpwebsocket/.idea/workspace.xml
phpwebsocket/phpwebsocket/client/index.html
phpwebsocket/phpwebsocket/client/my.html
phpwebsocket/phpwebsocket/client/phpinfo.php
phpwebsocket/phpwebsocket/server/server.php
phpwebsocket/phpwebsocket/server/WebSocketServer.class.php
phpwebsocket/phpwebsocket/.idea/scopes
phpwebsocket/phpwebsocket/.idea
phpwebsocket/phpwebsocket/client
phpwebsocket/phpwebsocket/server
phpwebsocket/phpwebsocket
phpwebsocket
phpwebsocket/phpwebsocket/.idea/.name
phpwebsocket/phpwebsocket/.idea/encodings.xml
phpwebsocket/phpwebsocket/.idea/misc.xml
phpwebsocket/phpwebsocket/.idea/modules.xml
phpwebsocket/phpwebsocket/.idea/phpwebsocket.iml
phpwebsocket/phpwebsocket/.idea/scopes/scope_settings.xml
phpwebsocket/phpwebsocket/.idea/vcs.xml
phpwebsocket/phpwebsocket/.idea/workspace.xml
phpwebsocket/phpwebsocket/client/index.html
phpwebsocket/phpwebsocket/client/my.html
phpwebsocket/phpwebsocket/client/phpinfo.php
phpwebsocket/phpwebsocket/server/server.php
phpwebsocket/phpwebsocket/server/WebSocketServer.class.php
phpwebsocket/phpwebsocket/.idea/scopes
phpwebsocket/phpwebsocket/.idea
phpwebsocket/phpwebsocket/client
phpwebsocket/phpwebsocket/server
phpwebsocket/phpwebsocket
phpwebsocket
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.