News Feed
Sections




News Archive
feed this:

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

Kevin Schroeder's Blog:
Passing typed ActionScript objects to Flex using PHP and a message queue
June 07, 2011 @ 08:20:12

Continuing on in his Flex and PHP series Kevin Schroeder has a new post to his blog today looking at how to send typed ActionScript objects to Flex so he could pass PHP objects and their structure directly back to the waiting frontend.

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.

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.

0 comments voice your opinion now!
flex message queue actionscript object mq


Kevin Schroeder's Blog:
Connecting PHP to ActionScript and Flex using Stomp
June 06, 2011 @ 08:19:26

Kevin Schroeder has a recent post to his blog today looking at how he used Stomp to connect his backend PHP to frontend Flex, a text-based protocol that can be used to connect to a MQ server instance.

In yesterday's post 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.

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 AS3Stomp library to make the connection, Kevin sets up the data provider for the Flex app to push the latest sale information into a list.

0 comments voice your opinion now!
tutorial actionscript stomp mq server flex backend notify


Community News:
Client Bucket Workshops in NYC (Design Patterns in PHP/Actionscript)
January 03, 2011 @ 09:25:29

Chinedu Chukuigwe has submitted some details about a series of courses planned as a part of the Client Bucket Workshop series for developers aiming to increase their knowledge of PHP and related technologies.

The idea is simple. No more than twelve people in a workshop led by the best of the best programmers. All profits from the Client Bucket Workshops will go toward cancer research.

Their upcoming class is a look at design patterns in PHP and ActionScript happening January 13th and 14th at the City College of New York, CUNY. The price for the full two-day event (9am-4pm) is $495 USD or, if you'd only like, you can register for only one of the days - either the 13th or 14th and get in on only the PHP or only Actionscript for $285 USD . If you'd like any more information about the project or Client Bucket Workshops, see their main site here. You can also sign up for their email list if you'd like to be informed about future workshops.

1 comment voice your opinion now!
workshop newyorkcity designpatterns actionscript charity


Manfred Weber's Blog:
Sharing complex objects between PHP and Flash - Part II
February 26, 2007 @ 10:34:00

Manfred Weber has posted part two today of his look at sharing more complex objects between PHP and Flash. This time, he focuses on implementing the classes he'd created before.

This is part 2 of my SOAP series. In the 1. part I started with a basic example of creating a simple PHP Soap Server with the PEAR package Services_Webservice. In this part I will share complex objects between PHP and Flash.

Using the Bookstore application he created before, he shows how to call the web service from Flash to grab the information and import the data where a sendAndLoad function call in ActionScript can do the rest.

0 comments voice your opinion now!
shar complex object flash webservice import actionscript shar complex object flash webservice import actionscript


DevShed:
Rich Internet Applications - Introduction to Adobe Flex and PHP
April 28, 2006 @ 13:42:59

DevShed has posted a new tutorial for two tools that could be used to bridge the gap between rich internet applications and powerful backend technology - Adobe Flex and PHP.

The development of Rich Internet Applications is now underway. Some people are calling this "Web 2.0," but it is really the transition from a page based browsing experience to one that more closely resembles desktop applications. A variety of technologies can be used to deliver this experience; AJAX is currently one of the more popular sets of technologies, mainly because it can be easily adapted into existing web based applications.

However, for those who are looking for something more robust, there appears to be two early front runners: Flex based applications that run in the Flash player from Adobe, and XML based applications from Microsoft. In this article, I'll introduce you to Adobe's Flex product line, including Adobe Flex Builder and Adobe Flex Enterprise Services.

They step you through all the steps you'll need to connect these two, including pointers to the tools and some sample code to get things working. The PHP script pulls the data from a database and formats the result in the MXML data layout to make it workable in the Flex environment.

0 comments voice your opinion now!
introduction adboe flex database mxml actionscript introduction adboe flex database mxml actionscript



Community Events





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


refactor configure testing developer interview wordpress laravel unittest list podcast release series language framework install code threedevsandamaybe introduction community opinion

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