Steven Erat's Blog Steven Erat Photography
 
 
Viewing By Entry
 
 

TalkingTree  Linux Magazine on using Flex with PHP

 

In the August 2007 edition of Linux Magazine, the editor contributes an article about the usefulness of integrating PHP with the free Flex SDK to achieve a Rich Internet Application (RIA) in a Web 2.0 world.

Flex and PHP
by Martin Streicher
Linux Magazine (full article available online with free registration)

The author begins by a short comparison of the RIA technologies of AJAX vs. Flex, and goes on to suggest that while AJAX is touted as an alternative to Flex UI's, AJAX suffers from a lack of rich media integration such as video, music, or animations and carries the risk of varying JavaScript behavior across different browser implementations.

The article does a great job describing architectural differences between classic web applications and RIAs. In a multi-tiered Rich Internet Application the application server technology such as PHP, or better yet ColdFusion, acts as the controller to implement business logic and interacts with deeper service layers that interface with the database. However, on the client side, Flex runs in the browser to perform data input validation, displays data visually via drill-down charts and graphs or via paginated data grids, and provides real time updates to changes in data (via Live Cycle Data Services a.k.a. Flex Data Services).

Furthermore, Flex provides a smart looking user interface and seamless user experience akin to typical desktop software while lacking the notoriously painful white screens of death during page refreshes that are commonplace in the Web 1.0 world. In effect, more work is done in the browser as a means of distributed computing, leaving the application server to focus on business logic and freeing it from having to generate the UI again and again across requests.

the role of the Web server is greatly simplified, limited to data manipulation (read/write) and computation. The server’s output is neutral XML. On the client, the browser runs the Flash application in an isolated Flash Player environment. The Flex application — which could be a single element in a larger, traditional Web page or a complete Web site — renders the user interface, reacts to mouse clicks and other input events, and changes from one interface “screen” to another (the various states of a user interface are called view states in the parlance of Flex). The Flex application is stateful, unburdening the server from rework. The style, content, and visuals of the application are essentially boundless, limited to the capabilities of the Flash Player. And the application runs consistently on any platform that Flash Player has been ported to, including Linux, Mac OS X, and Windows.

When developing Flex applications, Flex Builder is the preferred IDE, capable of code-centric or drag-n-drop development styles. Development is simple, just create a Flex project, click Run to automatically compile the code and run it in a browser, or when needed set break points and run the app in debug mode. When finished all that needs to be done is to push the resultant swf file into testing and production.

The application server technology shares data with the Flex front end via several protocols including most simply HTTP requests for static or dynamically generated XML, SOAP-based Web Services, or can interact directly with server components (servlets, CFCs, or whatever the PHP equivalent is) via the more efficient AMF protocol.

A common complaint of Flex-based RIAs or widgets is their homogenous appearance with the default white panels on a graded silver background (the "naked skin"), but this is more the fault of developers so far than of the Flex technology since Flex provides a means for customizable skinning and themes, although developer rarely utilize it. The team at ASFusion have stepped up to encourage creative skinning among Flex developers with their new site Fill Colors.

I'd like to announce the release of our latest project, Fill Colors! As many of you know, Nahuel and Laura have been passionate users and fans of Adobe Flex from its beginning. With Fill Colors, we really want to explore and push the possibilities of what is possible with Flex. Having grown tired of the default Flex style, we wanted to manipulate the look and feel of a Flex application. [Read More]

Wrapping up the Linux Magazine article, the author suggests that you may want to dip your toe in the water before diving in, and one can begin by replacing parts of existing Web 1.0 type applications with small RIA widgets. Gradually, a multipage application can become Flex-ified little by little. New projects can be written to run full screen with Flex as a single web interface.

Those who commented on the online article at Linux Magazine seemed to have not read the article, but don't let their ignorance distract you from the quality of this well written introduction to Flex (with PHP).

So what does a Flex-based RIA look like? Check these sites for example:

Yahoo! Maps

Harley Davidson Motorcycles

 


Comments

I'm good php programmer and this information very interesting for me. Thanks!


 

 

Calendar

 
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Search This Site

 
This is an exact search only

About This Site

 
I live west of Boston and work as a Software Engineer with ColdFusion and Flex, specializing in Linux. Recently I graduated in Professional Digital Photography from CDIA.
More about me

Recent Entries

 
A ColdFusion Trick for Lost D..
Starting ColdFusion9 Solr: Us..
Adobe LiveCycle DataServices ..

Recent Comments

 
Posted By Aaron Longnion:
Thanks Steven, I just ran into this problem, remembered your tweet about it, and found your blog on it. :)

Posted By srinyvas:
Hai, This information is very useful and i like your excellent writing skill. Can i copy this Content to my website top management colleges ...

Posted By Steven Erat:
@Wade - Glad I could help! Thanks for letting me know it worked for you too.

recently played

 
The Candid Frame #70 - Greg Gorman
by Ibarionex R. Perello
on The Candid Frame: A Photography Podcast

now playing, a plug-in for itunes

Categories

 
RSS Adobe (34)
RSS Bicycling (9)
RSS Blogging (39)
RSS Books (13)
RSS Breeze (13)
RSS CFMX Podcasts (10)
RSS ColdFusion (427)
RSS Computer Technology (51)
RSS Events (26)
RSS Flex (20)
RSS Gadgets (10)
RSS HiTech Industry (16)
RSS Java (25)
RSS Learning (57)
RSS Linux (70)
RSS Mac OS X (22)
RSS Macromedia (27)
RSS Meetup (35)
RSS New England (62)
RSS Odds & Ends (25)
RSS Outdoors (32)
RSS Personal (29)
RSS Photography (111)
RSS Photoshop (29)
RSS Podcasts (18)
RSS Rants (19)
RSS Restaurants (8)
RSS Science (34)
RSS Spain (16)
RSS Travel (42)
RSS Twitter (10)
RSS Video (20)
RSS Webcam (3)
RSS Writing (10)

Blogs I Read

 
Terrence Ryan
Ben Forta
Ray Camden
Kinky Solutions
Dan Vega
Gary Gilbert
Simeon Bateman
Red Hat Blogs
O'Reilly Digital Media
O'Reilly Radar
John Nack
The Strobist
Scott Kelby
Matt Kloskowski
Joe McNally
Digital Photography School
Engadget
Science Blog

RSS

 


Add to Google
Add to My Yahoo!

Aggregated By

 


Consumed By Feed-Squirrel.com
Aggregated by ColdFusionBlogger.org

Credits and Stuff

 
BlogCFC - Free ColdFusion Powered Blog Software
CJM Group - ColdFusion Website Hosting


 
 
blog | photos | flickr | referers | webcam | stats | about | contact
 
Copyright © 2010 Steven Erat. All rights reserved.
This is a personal weblog. The opinions expressed here represent my own and not those of my employer