News Feed
Sections




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

RIAZone:
Communicating with Flex and PHP over Sockets
February 24, 2010 @ 09:11:35

On the DZone's RIAZone there's a recent article from Ryan Stewart looking at combining PHP and Flex and get them talking to one another with the help of PHP's socket functions.

There are a number of ways to communicate between Flex and PHP but one of the more interesting is over sockets. Socket communication lets developers create near real-time communication by pushing information directly to the client. In this article you'll see the basics of how to use PHP as the socket server and connect it to a Flex application.

Using direct socket connections, the client and server communicate directly over a port and any data can be easily passed back and forth over it. This method requires that you set up a policy file for the application for security reasons before it can communicate with the PHP backend. With this in place, the rest is easy. They include the PHP code you'll need to make the socket request handler and how to return a response that the Flex application can read. Code for the Flex application side of things is included as well - a simple application that grabs a "stock price" and plots it on a graph (seen here).

0 comments voice your opinion now!
tutorial flex sockets integrate


blog comments powered by Disqus

Similar Posts

Greebo.net: Converting your PHP app to MySQLi prepared statements

Danne Lundqvist's Blog: Adding support for MS SQL Server to PHP in Linux

Sameer Borate's Blog: Downloading Gmail attachments using PHP

Chris Jones: Getting Started with PHP Zend Framework 2 for Oracle DB

HowToForge.com: Installing PHP5 Debugger On OpenSUSE 11.3


Community Events





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


threedevsandamaybe code framework symfony introduction api podcast community release series development bugfix list language interview conference deployment tips zendserver laravel

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