Foundation PHP 5 for Flash: Updates since publication
Any misprints or factual errors are listed on the book's official corrections page on the friends of ED site. This page is intended to keep you up to date with any new developments since the book's original publication.
Chapter 1: Installation issues
Apache 2.2 series requires PHP 5.2 or higher on Windows: For details of how to use the new Windows installer for PHP 5.2.x, please see the instructions in the Tutorials section of this site.
Universal binary of PHP 5 for Mac Marc Liyanage now creates Universal Binary versions of PHP, which require a minimum of OS X 10.4. If you are using OS X 10.3, you are restricted to using PHP 4. Check Marc Liyanage's site for the most up-to-date information. An alternative solution, which I have not tested, is MAMP.
Chapter 5: Changes to Apress RSS feed
The Apress RSS 1.0 feed used in the project in Chapter 5 is no longer active. Change the code in step 8 on page 217 as follows:
$urls[1] = 'http://blogs.apress.com/wp-rss2.php';
The new feed uses pubDate instead of dc:date, so you also need to change the code on page 219. The following lines are affected:
$date[$k] = substr($feed[$i]['items'][$j]['dc']['date'],0,10);
$time[$k] = substr($feed[$i]['items'][$j]['dc']['date'],11,8);
Amend them like this:
if (isset($feed[$i]['items'][$j]['dc']['date'])) {
$date[$k] = substr($feed[$i]['items'][$j]['dc']['date'],0,10);
$time[$k] = substr($feed[$i]['items'][$j]['dc']['date'],11,8);
}
elseif (isset($feed[$i]['items'][$j]['pubdate'])) {
$date[$k] = date('Y-m-d', strtotime($feed[$i]['items'][$j]['pubdate']));
$time[$k] = date('H:i:s', strtotime($feed[$i]['items'][$j]['pubdate']));
}
Chapter 6: Changes to phpMyAdmin installation
Since version 2.7.0, phpMyAdmin no longer contains a file named config.inc.php. All the main configuration settings have moved elsewhere, and you need to create your own version of config.inc.php containing only those settings that you want to change. The following instructions replace steps 5 through 9 on pages 276-277 (they assume that you have installed the latest versions of PHP and MySQL, and that mysqli has been enabled in PHP):
- Open a text editor and enter the following code (correct as of phpMyAdmin 2.8.0):
<?php $i = 1; $cfg['Servers'][$i]['extension'] = 'mysqli'; - If you are the only user of your computer and don't need to password protect access to phpMyAdmin, add the following code:
Replace "myRootPassword" with the root password that you chose for MySQL. Save the file as config.inc.php in the main phpmyadmin folder. Continue with step 10 in the book.$cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'myRootPassword'; ?> - If you want to password protect access to phpMyAdmin, add the following code instead:
Save the file as config.inc.php in the main phpmyadmin folder. Continue with step 10 in the book.$cfg['Servers'][$i]['auth_type'] = 'http'; ?>
Changes to phpMyAdmin 3.0
The user interface for defining new tables in phpMyAdmin has changed in phpMyAdmin 3, which was released in late September 2008. See my blog entry for a list of the differences.





