Errata

PHP Cookbook

Errata for PHP Cookbook

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 104
Code sample starting with '$whig_presidents'

The code sample starting with $whig_presidents has a spurious asterisk preceding the number 12.

Note from the Author or Editor:
Remove the asterisk.

Alan Rew  Jan 13, 2010 
Printed
Page 378
In the last block of code on the page

There are superfluous gt-entities ">" in two lines of code:

[?]
$ab->>load($file);
[?]
if ($ab->>schemaValidateSource($schema)) {
[?]

Note from the Author or Editor:
Remove ">" on the two lines listed here.

Bernhard Bodenstorfer  Aug 13, 2009 
PDF
Page 301
Example 10-10

The print statment prints with a non-existent variable called $row, when in fact it should have used the variable $firstRow.

Note from the Author or Editor:
The two instances of $row in the print statement in the code example should be changed to $firstRow -- the entire print statement should read:

print "The first results are that {$firstRow['symbol']} goes with {$firstRow['planet']}";

Anonymous  Apr 25, 2009 
Printed
Page 193
First paragaph in the 'Discussion' section of 'Creating Abstract Base Classes'

The first word in the first paragraph should be 'abstract' instead of 'abstact'.

Anonymous  Sep 10, 2008 
Printed
Page 190
Example 7-18 - Title

'Concateination' should be spelled 'concatenation'

Anonymous  Sep 10, 2008 
Printed
Page 755
First sentence of the page

"packages is available" should probably be "packages available"

Anonymous  Aug 24, 2008 
Printed
Page 563
Second paragraph, third sentence

"these encrypted file provides" should be "these encrypted files provide" I think.

Anonymous  Aug 24, 2008 
Printed
Page 557
8th table entry on this page

The Algorithm constant "MCRYPT_ENIGNA" should be "MCRYPT_ENIGMA".

Anonymous  Aug 24, 2008 
Printed
Page 336
First sentence after "Discussion" header

The fourth word "keep" should be "keeps".

Anonymous  Aug 24, 2008 
Printed
Page 266
The large paragraph in the middle of the page

The 4th & 5th sentences (beginning "The regular expression..." & "This can be..." respectively) are duplicated again as the 6th & 7th sentences.

Anonymous  Aug 24, 2008 
Printed
Page 2
7th paragraph

"followed by semicolon a to end the statement" should read "followed by a semicolon to end the
statement"

Anonymous   
Printed
Page 2
7th paragraph

"followed by semicolon a to end the statement" should read "followed by a semicolon to end the
statement"

Anonymous    Sep 01, 2009
Printed
Page 266
example 9-9, line 4

missing comma before $_POST

Anonymous    Aug 01, 2007
Printed
Page 266
example 9-9, line 4

missing comma before $_POST

Anonymous    Aug 01, 2007
Printed
Page 276
second line of code from the bottom

There is an extra slash in the <br> tag at the end of the "Age" line.
Age: <input type='text' name='age' /> </br/ >
should be
Age: <input type='text' name='age' /> <br/ >

Anonymous    Aug 01, 2007
Printed
Page 276
second line of code from the bottom

There is an extra slash in the <br> tag at the end of the "Age" line.
Age: <input type='text' name='age' /> </br/ >
should be
Age: <input type='text' name='age' /> <br/ >

Anonymous    Aug 01, 2007
Printed
Page 277
6th line of code from the top of the page

There is an extra slash in the <br> tag at the end of the "Favorite Food" line.
Favorite Food: <input type='text' name='food' /> </br/ >
should be
Favorite Food: <input type='text' name='food' /> <br/ >

Anonymous    Aug 01, 2007
Printed
Page 277
6th line of code from the top of the page

There is an extra slash in the <br> tag at the end of the "Favorite Food" line.
Favorite Food: <input type='text' name='food' /> </br/ >
should be
Favorite Food: <input type='text' name='food' /> <br/ >

Anonymous    Aug 01, 2007
Printed
Page 292
first sentence

In the sentence: "While ..., but it can cause other problems." Remove "but" to make the sentence read
properly.

Anonymous   
Printed
Page 441 & 442
14-1

the xmethods.net site is no longer working

Anonymous   
Printed
Page 441 & 442
14-1

the xmethods.net site is no longer working

Anonymous