To Think About
• Reach - How many people will view this
application? What platform will they be on?
Is it an open or closed platform?
• Rich - Can I integrate rich content easily,
like video, audio and animations?
• Tools - What will I use to build this
application? How will I debug?
PHP and RIAs
• Read in XML from a PHP backend (REST)
REST with PHP
<?php
//connect to the database
mysql_connect ...
//get the data
mysql_query( “SELECT * from recipes”);
...
//transform into XML
print “<recipes><recipe id=’1’ name=’cake’/><recipe id=’2’
name=’hotdog’/></recipes>”;
?>
PHP and RIAs
• Transfer PHP objects to the client directly
• JSON - JavaScript Object Notation
• AMF - ActionScript Messaging Format
JSON and PHP
Flex with AMFPHP
<?php
//connect to the database
mysql_connect ...
//get the data
$ResultObject = mysql_query( “SELECT * from recipes”);
...
return( mysql_fetch_object( $ResultObject ) );
?>
How to make money?
How to make money?
Recap
• Build PHP apps as services that can be used
by any front end - Ajax, XAML, Flex etc...
• Rich clients and components allow you to
simplify your PHP code
What’s next?
Web Compiler for
Flex Applications
• http://labs.adobe.com
• Allows you to create MXML, ActionScript,
upload to the server and compile there,
similar to developing PHP applications
Apollo enables...
• Offline / Occasionally Connected
• Applications can run in background
• Network
• HTTP
• XML-RPC / SOAP / Rest based web services
• Binary and XML sockets
• File I/O
• Local storage / Settings API
• Custom Chrome
• Shape
• Alpha
0 comments
Post a comment