News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPBuilder.com:
Creating Real Time Applications with PHP and WebSockets
July 29, 2014 @ 12:13:07

On PHPBuilder.com today there's a new tutorial introducing you to the combination of PHP and WebSockets to make real-time requests to fetch data in your application.

This article will explore the main PHP libraries used to create real time, bi-directional applications between clients and servers over WebSockets. WebSocket is full-duplex client/server communication over TCP. It is also a new feature available in browsers as a part of the HTML5 specs that allows JavaScript clients to open bi-directional socket connections to a server. [...] WebSocket connections are basically TCP socket connections that following the WebSocket rules to communicate. The WebSocket Protocol is an independent TCP-based protocol.

They introduce some of the basic concepts behind WebSockets (including an example URL) and show how to use the PHPWebSockets library to handle some sample requests. They also include some basic JavaScript to make the request to the backend PHP script and send or fetch content on the server. They also show you how to implement a simple chat server using a few other libraries like Ratchet, Elephpant.io and Socket.io.

0 comments voice your opinion now!
realtime application websockets tutorial introudction

Link: http://www.phpbuilder.com/articles/application-architecture/optimization/creating-real-time-applications-with-php-and-websockets.html

blog comments powered by Disqus

Similar Posts

Test.ical.ly Blog: Wrapping symfonys functional tests in a PHPUnit test case

SitePoint PHP Blog: Dealing with Dependencies

Tobias Schlitt's Blog: eZ Template article

Giulio Pons' Blog: Facebook Connect Tutorial

IBM developerWorks: Squash bugs in PHP applications with Zend Debugger


Community Events





Don't see your event here?
Let us know!


zendserver series interview podcast language package bugfix unittest api introduction opinion library community release deployment laravel install update symfony framework

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework