SAMS TY PHP, MYSQL AND APACHE ALL-IN-ONE (2e) // ERRATA
NOTE: Please go to the respective web sites for PHP, MySQL and Apache to download updated minor versions of the software.
Chapter 1: Installation Quick Start Guide
- On page 9, the last line of the page, it says "cd php-4.3.8" when in fact the directory should be called php-5.0.2 based on the version used here.
Chapter 4: Installing and Configuring PHP
- On page 84, in Answer number 1, the configure line should read: ./configure --help
Chapter 6: Flow Control Functions in PHP
- On page 117, in the pseudocode example of the switch statement, the default doesn't have a break statement after the commented-out descriptions. The example in Listing 4.4 is correct (if not a wee bit more indented, for whatever reason).
Chapter 10: Working with Forms
- On page 212, in the example of values in sendmail_path at the end of the page, the arguments should be preceded by a - as in -odd -arguments. These, of course, are to be replaced with whatever arguments used, such as: sendmail -t -i (for example).
Chapter 21: Creating an Online Storefront
- On page 423, in line 63 of Listing 21.1, the colon after the line number should be shoved up against the line number ("63:") and is not part of the script itself.
Chapter 22: Creating a Shopping Cart Mechanism
- On page 435, in line 27 of Listing 22.2, $PHPSESSID should be $_COOKIE[PHPSESSID].
- On page 436, in line 14 of Listing 22.3, $PHPSESSID should be $_COOKIE[PHPSESSID].
- On page 438, in line 10 of Listing 22.4, $PHPSESSID should be $_COOKIE[PHPSESSID].
Chapter 23: Creating a Simple Calendar
- On page 453, in line 40 of Listing 23.4, the echo statement is indented, as if it's part of a missing else statement or some other logical construct. It's not; it's just indented more than it should be. It should be directly under the closing brace of the if statement in line 39.
[last updated 2005-01-25]

