Written for the Flash developer who wants to do more, Steve Webster's PHP for Flash shows how to combine simple server-side scripts with Flash to create smarter, more versatile Web applications. With a truly engaging writing style and a sharp visual sense, this title will let any working Flash programmer make the transition to simple server-side scripting with PHP. While most programming books print source code as is, this one distinguishes itself with a keen visual presentation with graphics used to highlight sections of both Flash ActionScript and basic PHP. It also helps that Webster is a notably lively writer. A few guiding principles govern this text. First, all the interfaces are created in Flash and ActionScript, and the book walks you through the steps required to build these designs. After a basic tutorial of the PHP language, the author uses PHP to add additional functionality to Flash-powered Web applications, from managing user registration to searching news articles using regular expressions. This text provides one of the best (and most truly accessible) tutorials for understanding and using regular expressions. While most writers pass the buck to difficult online resources for regular expressions, the author takes the time to explain and demonstrate how regular expressions really work, with clear examples and a nicely patient presentation style. Later, the book zeros in on using the MySQL database package for storing and retrieving data from Flash applications. To this end, there's a quick introduction to programming with SQL and how to query and update data using PHP combined with MySQL. Later chapters present case studies of larger Flash applications that make use of techniques demonstrated earlier, like a customizable user poll, a simple event scheduler, plus a threaded discussion forum. With a winning writing style and a concise presentation that makes smart use of graphics, PHP for Flash will put simple PHP programming within reach of anyone who has a little previous familiarity with Flash. --Richard Dragan Topics covered: Overview of PHP 4 and scripting essentials, loading external data in Flash (a registration script), PHP language fundamentals (including variables, data types, arrays), using functions (calling conventions), string handling in PHP, in-depth tutorial on PHP regular expressions, using cookies, file I/O tutorial, introduction to the MySQL database platform, basic SQL syntax tutorial, using PHP and MySQL together (a simple content management system), case study for a user poll (including administration modules), event planner scheduler application, case study for a threaded discussion Web application, reference for installing PHP and MySQL, object-oriented programming essentials in PHP, and resources for PHP.Body by Flash - brains by PHP PHP is a powerful, easy-to-learn scripting language, used in around 7,000,000 domains. Multi-platform and open source, when partnered with Flash it can be used to create beautiful, engaging and reactive web experiences. When combined with the open source MySQL database solution, PHP is your fast track to supplying your Flash movies with real-time dynamic content: rich functionality, elegant simplicity, the beauty of Flash, with the brains of PHP. What this book covers: The Foundation series aims to take you through the basics and beyond, feeding you the information and the inspiration you need to create innovative, interactive web applications. By the midpoint of this book, you'll be comfortable enough with the PHP language to set your sights on database integration and high-end real-world applications. This book will guide you there with down-to-earth examples, practical tutorials and a designer-friendly approach. The basics of PHP as a scripting language, including the similarities and differences between PHP and ActionScript Dynamic Data and Flash The MySQL database option; sending your Flash movies oribital with fast and easy data handling Relevant and reusable platform-independent Flash and PHP case studies to accompany each step In depth breakout of three full-size applications to show you the way ahead The book is also supported by its own site at phpforflash.com, with free source files, additional articles and working demonstrations including further material on the reader support forum, which itself forms one of the self-build tutorials in the book. Who this book is for: This book provides a designer-focused angle on every aspect of PHP and MySQL, and has been written specifically for: Flash designers who want to add a dynamic edge to their web sites Designers who want a friendly and useful guide to incorporating PHP into a graphics rich website
|