Programming PHP, Second Edition by Kevin Tatroe, Rasmus Lerdorf, Peter MacIntyre This errata page lists errors outstanding in the most recent printing. If you have technical questions or error reports, you can send them to booktech@oreilly.com. Please specify the printing date of your copy. This page was updated February 14, 2008. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification Confirmed errors: (12) Fourth line from the bottom; Replace books' with book's (28) 7th line from the bottom; Replace "An value" with "A value" (32) First line of code in a block just before title "Variable Variables".; In the first line of code stands === instead of ==. {41} Table 2-5; In table 2-5, last line of table. $var for pre-decrement should be --$var (57) exit and return section, 2nd paragraph, last word; "satement" should be "statement" {133} Example 5-2. Searching an array; first line of code on page; if($submitted) should be: if($_POST['submitted']) [152] definition of class Person; function __construct($name, $ag`e) { should be function __construct($name, $age) { (153) 1st paragraph; The PHP destructor method is __destruct() and not __destructor() (154) top; uninitiailized should be uninitialized (198) 4th line from the bottom; ... VALUES (4, 'I, Robot, '0-553-29438-5' 1950) should be: ... VALUES (4, 'I, Robot', '0-553-29438-5' 1950) {215} end of example code; The example code does not contain the tag. {271} code example, about 1/3 of the way down the page: xml_get_current_line_number($parser)); should be: xml_get_current_line_number($parser); [277] Code in 1st section - Parsing XML with DOM; echo $child->noteValue; SHOULD READ echo $child->nodeValue; node with a "d". (334) Middle of the page; "This is does nothing" should be "This does nothing". (406) bottom; Formatting of the Date() function options was affected by the spell checker. http://ca3.php.net/manual/en/function.date.php has the correct combinations of upper and lower case options. (420-421) under the fopen() function; Some options are specified as uppercase ('R', 'W' and 'A') They must be *lowercase* (517) 2nd column; In the index, the shell_exec function is listed as "shell_exe"