Home :

Hook up Flash to external data sources with PHP

Foundation PHP 5 for FlashFoundation PHP 5 for Flash brings together three of the web's hottest technologies—Flash, PHP, and the MySQL database system. It uses ActionScript 2.0, PHP 5.0, and MySQL 4.1, but has been designed to be version-neutral. In other words, you can be confident that your applications won't break if deployed on an older server.

At each stage you are given an overview of a new area of PHP/MySQL, introducing you to the syntax and showing how it compares to ActionScript, and then integrating it with Flash to produce increasingly sophisticated applications. For example, earlier chapters cover things such as getting data from PHP to Flash and back again, variables, arrays, string manipulation, validating user input, and feedback forms. Later on, it moves on to more advanced subjects such as creating databases using MySQL Monitor and phpMyAdmin, manipulating database data with a Flash interface, displaying data from an RSS feed in Flash, persisting data with sessions, and creating a full blown content management system.

Compatible with all versions from Flash MX

The book is based on Flash MX 2004, but everything is still fully applicable to Flash 8. All the example files (available directly from the friends of ED website) are also available in Flash MX format—with the code rewritten in ActionScript 1.0 format, where necessary. Consequently, the book is suitable for all versions of Flash from MX. Similarly, although the focus is on PHP 5, the code has been designed so that 95% of it will work with PHP 4.2.0 or above.

Note: This book uses ActionScript 2.0. It does not cover ActionScript 3.0.

In addition, to get you up and running, the book features a detailed guide to setting up your environment—PHP, MySQL, and the Apache web server—along with extensive troubleshooting information.

What readers say

If you are a Flash designer, you need to know back end technologies... Essential reading.

Sham Bhangal

Foundation PHP 5 for Flash is the most useful tutorial book I have ever laid my hands on.

John Lindquist

This book took me out of the hazy fog of uncertainty regarding the integration between Flash and PHP and right into the realm of coding my own PHP back-ends.

SLY from San Francisco

Buy from one of these online stores

Also available in Polish

Polish edition

Published by Wydawnictwo Helion, Gliwice, Poland (ISBN: 83-246-0185-6).