Errata

Programming PHP

Errata for Programming PHP, Second Edition

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed
Page 12
Fourth line from the bottom

Replace books' with book's

Anonymous   
Printed
Page 28
7th line from the bottom

Replace "An value" with "A value"

Anonymous   
Printed
Page 32
First line of code in a block just before title "Variable Variables".

In the first line of code stands === instead of ==.

Anonymous   
Printed
Page 41
Table 2-5

In table 2-5, last line of table.

$var for pre-decrement should be
--$var

Anonymous   
Printed
Page 57
exit and return section, 2nd paragraph, last word

"satement" should be "statement"

Anonymous   
Printed
Page 133
Example 5-2. Searching an array; first line of code on page

if($submitted)
should be:
if($_POST['submitted'])

Anonymous   
Printed
Page 152
definition of class Person

function __construct($name, $ag`e) {
should be
function __construct($name, $age) {

Anonymous   
Printed
Page 153
1st paragraph

The PHP destructor method is __destruct() and not __destructor()

Anonymous   
Printed
Page 154
top

uninitiailized
should be
uninitialized

Anonymous   
Printed
Page 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)

Anonymous   
Printed
Page 215
end of example code

The example code does not contain the </form> tag.

Anonymous   
Printed
Page 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);

Anonymous   
Printed
Page 277
Code in 1st section - Parsing XML with DOM

echo $child->noteValue;

SHOULD READ

echo $child->nodeValue;

node with a "d".

Anonymous   
Printed
Page 334
Middle of the page

"This is does nothing" should be "This does nothing".

Anonymous   
Printed
Page 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.

Anonymous   
Printed
Page 420-421
under the fopen() function

Some options are specified as uppercase ('R', 'W' and 'A')
They must be *lowercase*

Anonymous   
Printed
Page 517
2nd column

In the index, the shell_exec function is listed as "shell_exe"

Anonymous