Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date submitted |
---|---|---|---|---|
Printed | Page 105 last sentence |
A piece of text from the Discussion section of section 4.3 seems to have been accidentally copied to the Discussion section of 4.2. |
Anonymous | |
Printed | Page 116 example 4.1 |
This concerns Example 4.1 on page 116 of edition II. Since 'switch' executes the statements that follow, |
Anonymous | |
Printed | Page 200, 201 Example 7-32, 7-33 |
The "$__data" array should be an associative array: $__data = array('person'=>'', 'email'=>''); |
Anonymous | Aug 16, 2008 |
Printed | Page 222 near top of page |
In order to illustrate using instanceof against an interface, the line: |
Anonymous | |
Printed | Page 222 near top of page |
In order to illustrate using instanceof against an interface, the line: |
Anonymous | Jun 25, 2008 |
Printed | Page 241 function pc_parse_digest - 8th line from bottom of page |
The first argument to preg_match includes the expression '(.*?)' which appears to be a mistake. Maybe '(.*)' was intended? |
Anonymous | Aug 24, 2008 |
Printed | Page 256 Addition to the code on this page -- addition to my previous errata (below, p.257) |
I also had to strip the slashes before displaying as well so |
Anonymous | |
Printed | Page 256 Addition to the code on this page -- addition to my previous errata (below, p.257) |
I also had to strip the slashes before displaying as well so |
Anonymous | |
Printed | Page 257 Addition to the code on this page |
This isn't a mistake as such but I believe that it is a very necessary addition. |
Anonymous | |
Printed | Page 257 Addition to the code on this page |
This isn't a mistake as such but I believe that it is a very necessary addition. |
Anonymous | |
Printed | Page 263 Example 9-5 |
if (isset($_POST['color']) && (strlen($_POST['color']) <=5 )) { |
Anonymous | |
Printed | Page 263 Example 9-5 |
if (isset($_POST['color']) && (strlen($_POST['color']) <=5 )) { |
Anonymous | |
Printed | Page 266 4th line of Example 9-9 |
A comma is needed between the two arguments of preg_match. |
Anonymous | |
Printed | Page 266 4th line of Example 9-9 |
A comma is needed between the two arguments of preg_match. |
Anonymous | |
Printed | Page 267 Example 9-10 |
Line 12 should read |
Anonymous | |
Printed | Page 267 Example 9-10 |
Line 12 should read |
Anonymous | |
Printed | Page 270 last paragraph |
Author fails to explain how one can "give the default choice a checked="checked" attribute." |
Anonymous | |
Printed | Page 270 last paragraph |
Author fails to explain how one can "give the default choice a checked="checked" attribute." |
Anonymous | |
Printed | Page 271 Example 11-8. Creating a parser |
The example code won't function without these changes. The function "create_parser" uses a placeholder |
Anonymous | |
Printed | Page 271 Example 11-8. Creating a parser |
The example code won't function without these changes. The function "create_parser" uses a placeholder |
Anonymous | |
Printed | Page 275 2nd line of Example 9-20 |
To produce the output shown, the single quotes surrounding fletch.html |
Anonymous | |
Printed | Page 275 2nd line of Example 9-20 |
To produce the output shown, the single quotes surrounding fletch.html |
Anonymous | |
Printed | Page 292 first sentence |
In the sentence: "While ..., but it can cause other problems." Remove "but" to make the sentence read |
Anonymous | |
Printed | Page 297 5th line down |
in the Link to email addresses - in example 11-3. pc_ascii3html() |
Anonymous | |
Printed | Page 297 5th line down |
in the Link to email addresses - in example 11-3. pc_ascii3html() |
Anonymous | |
Printed | Page 337 The one-sentence paragraph immediately preceding the "See Also" header |
The sentence doesn't make sense at all. Not sure how best to fix it... the session_name() function doesn't return the name of a cookie at all. |
Anonymous | Aug 24, 2008 |
Printed | Page 338 Both code listings |
The line |
Anonymous | |
Printed | Page 338 Both code listings |
The line |
Anonymous | |
Printed | Page 352 Paragraph Solution |
in regular expression, part for not permitting spaces in email has to be |
Anonymous | |
Printed | Page 352 Paragraph Solution |
in regular expression, part for not permitting spaces in email has to be |
Anonymous | |
Printed | Page 354 whole chapter? |
The downloaded examples for chapter 12 contain the XML output instead of the PHP |
Anonymous | |
Printed | Page 354 whole chapter? |
The downloaded examples for chapter 12 contain the XML output instead of the PHP |
Anonymous | |
Printed | Page 370 code samples at top and middle of page |
In the code sample at the top of the page (which continues over from page 369) the line starting |
Alan Rew | May 20, 2012 |
Printed | Page 372, 373, 376 (twice), 378 After expression "new DOMDocument" |
The semicolon at the end of the DOMDocument construction statement is missing. |
Bernhard Bodenstorfer | Aug 13, 2009 |
Printed | Page 387 3rd sentence from bottom |
"This adds indention ..." |
Alan Rew | Mar 29, 2012 |
Printed | Page 443 bottom |
Didn't close your array. |
Anonymous | |
Printed | Page 443 bottom |
Didn't close your array. |
Anonymous | |
Printed | Page 443 4th paragraph, first sentence |
Where did the "10001" function argument come from? Should it just be removed entirely? |
Anonymous | Aug 24, 2008 |
489 Examples file |
In the examples file, all of chapter 16 is missing. Is there a reason for that? |
Jack Mason | Jan 11, 2010 | |
Printed | Page 494 Second full sentence on the page |
The fourth word "to" should be removed maybe? |
Anonymous | Aug 24, 2008 |
Printed | Page 512 First code section of the Discussion |
The first and second lines of the code section: "$results = ..." and "foreach(..." are duplicated as the third and fourth lines. |
Anonymous | Aug 24, 2008 |
Printed | Page 520 below second paragraph |
<code>% php -r 'print strftime("%c");'</code> generates an error at the commandline |
Anonymous | |
Printed | Page 520 below second paragraph |
<code>% php -r 'print strftime("%c");'</code> generates an error at the commandline |
Anonymous | |
Printed | Page 534 The second code section in the Discussion |
The first and second lines - "$transparent = ..." and "print_r(..." - are duplicated as the third and fourth lines. |
Anonymous | Aug 24, 2008 |
Printed | Page 654 First sentence of recipe 22.8 |
Fifth word "characterssuch" is missing a space. |
Anonymous | Aug 24, 2008 |
Printed | Page 664 Example 23-2 |
if(-1 == fwrite($fh, $_COOKIE['flavor'])) { die("can't write: $php_errormsg") }; |
David Schruth | Jan 26, 2009 |
Printed | Page 685 First sentence of recipe the 23.14 "Solution" |
Extra word "print" following "print()". |
Anonymous | Aug 24, 2008 |