From the Blog

PHP로 Websocket 서버 구축 방법

PHP는 호출시마다 프로세스를 띄우는 방식으로 작동되기 때문에 static 개념이 존재하지 않는다.

그래서 일반적으로 PHP는 자체 static 메모리를 관리할 수 없어,  memcached나 redis 의 도움을 받아 메모리를 사용할 수 있다.

Websocket Server 구축 시에도 PHP는 유사한 한계가 있었는데, php -q 의 명령어를 활용하여 PHP에서도 Websocket을 구축하여 운영할 수 있는 오픈소스가 있는 것을 발견했다.

자세한 정보는 아래 내용 참조.

PHPWEBSOCKET

So here is a quick hack to implement hybi-10 websockets in php!

Check out the [hybi-10 standard here](http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10#section-4.2)

Check [This Wikipedia Page](http://en.wikipedia.org/wiki/WebSocket#Browser_support) for suppored list of browsers.

Have your say


%d bloggers like this: