<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 19 May 2013 22:31:21 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Kevin Schroeder's Blog: Passing typed ActionScript objects to Flex using PHP and a message queue]]></title>
      <guid>http://www.phpdeveloper.org/news/16433</guid>
      <link>http://www.phpdeveloper.org/news/16433</link>
      <description><![CDATA[<p>
Continuing on in his Flex and PHP series <i>Kevin Schroeder</i> has a new post to his blog today looking at how to <a href="http://www.eschrade.com/page/passing-typed-actionscript-objects-to-flex-using-php-and-a-message-queue/">send typed ActionScript objects</a> to Flex so he could pass PHP objects and their structure directly back to the waiting frontend.
</p>
<blockquote>
What I wanted to do was use the sales notification mechanism to pass PHP objects to Flex using the message queue.  But I could not get the unserialization mechanism to work and so I had to settle for passing a simple message that a sale had been made. However, because you can pass typed objects back and forth between PHP and ActionScript over HTTP using Zend_Amf_Server I figured that there MUST be a way of doing it automatically.
</blockquote>
<p>
He walks you through the steps to discovery that eventually got him to his end goal - making a simple valueObject class to use for the connection, a basic PHP script (using Zend_Amf) to parse the object's data and a bit of code to send it back to the waiting MQ queue via a Zend_Queue adapter.
</p>]]></description>
      <pubDate>Tue, 07 Jun 2011 08:20:12 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Kevin Schroeder's Blog: Connecting PHP to ActionScript and Flex using Stomp]]></title>
      <guid>http://www.phpdeveloper.org/news/16427</guid>
      <link>http://www.phpdeveloper.org/news/16427</link>
      <description><![CDATA[<p>
<i>Kevin Schroeder</i> has a recent post to his blog today looking at how he used Stomp to <a href="http://www.eschrade.com/page/connecting-php-to-actionscript-using-stomp/">connect his backend PHP to frontend Flex</a>, a text-based protocol that can be used to connect to a MQ server instance.
</p>
<blockquote>
In <a href="http://www.eschrade.com/page/details-on-building-a-flex-based-dashboard-with-a-php-backend/">yesterday's post</a> I talked a little bit about some of the details on how I used messaging to connect a front end on demand request to a back end scheduled data processing mechanism.  In this post we're going to talk about how to send data from a web page to a running Flex application without using HTTP.  It is really quite easy.
</blockquote>
<p>
His demo application watches a Magento instance and notifies him whenever a new sales comes in. Because of Magento's event-based system, it made the setup relatively easy. He includes the code for the observer on the Magento side and the Zend Framework-based logger code that it calls. Using the <a href="http://code.google.com/p/as3-stomp/">AS3Stomp</a> library to make the connection, <i>Kevin</i> sets up the data provider for the Flex app to push the latest sale information into a list.
</p>]]></description>
      <pubDate>Mon, 06 Jun 2011 08:19:26 -0500</pubDate>
    </item>
  </channel>
</rss>
