PHP ESSENTIALS (2e) // ERRATA
NOTE 1: Please go to the respective web sites for PHP, MySQL and Apache to download the latest versions of the software.
NOTE 2: The printing of code listings in this book did not turn out very well. In many instances, my code indentations were not printed properly, resulting in some difficulty reading some code listings. The code is correct (unless indicated below), but is not stylistically representative of a "clean" display.
Chapter 1: Getting Started with PHP
- On pages 7 and 18, the screenshots were not cropped properly. Instead of showing just the browser window, they show my own entire desktop. Obviously, yours will look different...
Chapter 2: Basic PHP Techniques
- On page 38, the variable $username wraps and appears as $user-name, which is not accurate but since it's not part of any code and is just used as an example, it doesn't really matter.
- On page 58, the header example should have a semicolon at the end of the statement.
- On pages 71-73, the example pathname used is /usr/local/apache/[etc] which is fine since it's just an example, but since I used the example /usr/local/apache2/[etc] in the installation chapter I should have used it here as well. Doesn't really matter since the instructions always say to use your own pathnames.
Chapter 4: Creating and Populating Database Tables
- On pages 119 and 121, there is a space in the code between $_POST and [field_length] which should not be there. The variable is written as $_POST[field_length] ... without the space.]
Chapter 5: User Authentication
- On pages 137-138, the same note applies regarding the file path names as in the third bullet for Chapter 2, above.
- On page 146, there are strange bullets printed in the code listing, and I have no idea why...just ignore them.
- On page 147, the wrong sample username/password/database name is used in the code listing. Again, it doesn't really matter since the instructions always say to use your information.
Chapter 7:
- On page 178, the file should be named admin_modrecord.php and not admin_addrecord.php
- On page 186, the header statement should redirect to admin_modrecord.php and not admin_addrecord.php
[last updated 2004-01-11]
