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 21 Item #4 |
The first sentence in item 4 does not make sense: "Set up PHP to load Apache as a |
Anonymous | |
Printed | Page 21 Item #1 |
The "2" of php5apache2.dll refers to the version number of apache that you have downloaded. |
Anonymous | |
Printed | Page 22 Figure 2-11 |
If you have downloaded version 2.2 of apache, then you will need to use |
Anonymous | |
Printed | Page 22 Figure 2-11 |
This is for Windows XP. When I inserted the "LoadModule php5_module |
Anonymous | |
Printed | Page 22 1st illustration |
Your errata says: |
Anonymous | |
Printed | Page 22 |
For Step 5, this line should be added, it was highlighted but not explained: |
Anonymous | |
Printed | Page 23 Tip at foot of page |
The "tip" at the foot of the page is not especially useful (and with older versions of OS X is INCORRECT). |
Anonymous | |
Printed | Page 34 Section missing information |
The section starts out referring to creating html pages without clarifying the important point that php code is saved in files named "file.php" and not "file.htm". It reads as if php code is embedded in html files, and it isn't until the bottom of page 36, when "example.php" is referenced that you have any indication otherwise. To be honest having just re-read the section I still don't know if it's a universal truth that all php code is saved in files named with a php extension or not. |
Anonymous | |
Printed | Page 34 Example 3-2 |
"<?php" and "?>" are missing. Tried several times, got frustrated, and then found the error. It is really irresponsible for the authors to make such errors. I should not have bought this book. |
Anonymous | |
Printed | Page 39 Fig 3-3 |
mixup of the capitalisation of $Age and $age (I'm a beginner, but this seems so to me?) |
Anonymous | |
Printed | Page 53 Paragraph preceding Example 3-25 |
The sentence "If you are using that variable in a test, you'll see the current value before the change." probably should read "If you are using that variable in a test, you'll see the new value after the change.", as it refers to pre-increment and pre-decrement operators. |
Anonymous | |
Printed | Page 58 Last but one paragraph |
The word "don't" should be removed from "Because the strings don't contain simple numbers, an expression that is converted without errors...". |
Anonymous | |
Printed | Page 60 Example 4-4. Order of precedence |
2 + 4 - 5 == 1; |
Anonymous | |
Printed | Page 64 Conditionals section at bottom of page |
The second bullet item is 'switch' but in the first paragraph of p65 it says 'PHP |
Anonymous | |
Printed | Page 67 1st paragraph |
$user_name should be $username. |
Anonymous | |
Printed | Page 69 Example 4-11 |
Extraneous line: echo "Perform actions for shipping.<br>"; and closing curly brace |
Anonymous | |
Printed | Page 97 Example 5-21 outputs |
spacing off. |
Anonymous | |
Printed | Page 100 1st paragraph |
In the sentence "For instance, if you use a numeric array to store four elements and let PHP pick the number index values, the last value is stored under the index value of 4." the '4' should be replaced with '3'. |
Anonymous | |
Printed | Page 119 Table 7-2 |
The description of Table 7-2 is "The user purchases table after any normalization." |
Anonymous | |
Printed | Page 124 chapter 7 |
You jump right into creating tables without creating a database to begin with First the user must login with priviledges, then from the mysql command line, CREATE DATABASE books. Then the user must use the database : USE DATABASE books. Otherwise you get errors. I am just starting out, was mystified by this until I did a web search. Seems like a big ommission, since stylistically you seem to be catering to someone who has no clue how mySQL works. |
Anonymous | |
Printed | Page 126 After "As long as there are no errors..." |
Line 12 should have "ES)2,1" removed. |
Anonymous | |
Printed | Page 130 1st paragraph |
The paragraph says: "It also knows not to display title_id twice and not to display |
Anonymous | |
Printed | Page 136 Last paragraph. |
The last paragraph should read: |
Anonymous | |
Printed | Page 138 Starting at "Table Manipulation" |
The last sentence of the first section reads, "Creating tables is an important |
Anonymous | |
Printed | Page 171 Example 9-5, Assign the query |
From June 2006 printing: |
Anonymous | Aug 04, 2008 |
Printed | Page 183 code example |
I'm starting to agree with the statement by the single customer reviewer that this |
Anonymous | |
Printed | Page 183 Example 10-2 |
If you copy code from example 10-2 into the simple.php file as directed, browser will |
Anonymous | |
Printed | Page 197 Line 1 of code in Example 10-10 |
The opening angle bracket missing--"?php" should be "<?php". |
Anonymous | |
Printed | Page 201 Example 10-11 |
The description of the example should be: |
Anonymous | |
Printed | Page 214 1st paragraph |
The last sentence of the paragraph seems to suggest that ucfirst() turns the first letter of each word into an uppercase one. However, it changes only the first letter of the string. |
Anonymous | |
Printed | Page 214 2nd paragraph |
The text claims that stristr() is case sensitive, and strstr() is not. However, strstr() is the case sensitive and stristr() the case insensitive method. |
Anonymous | |
Printed | Page 214 2nd paragraph |
"Lastly, there is strops" must be "Lastly, there is strpos". |
Anonymous | |
Printed | Page 216 Example 11-16 |
The time format from the example "G.i:s" would produce the result "16.18:01", not "4:18:01pm" as indicated. To get that you would need to use "<b>g:</b>i:s<b>a</b>". |
Anonymous | |
Printed | Page 217 Table 11-2 |
A wrong meaning is given for the following characters: |
Anonymous | |
Printed | Page 226 Table 11-4 and below |
$HTTP_POST_FILES should only be used in PHP versions before 4.1.0. In later versions $_FILES should be employed instead. |
Anonymous | |
Printed | Page 234 Example 12-1 |
The line |
Anonymous | |
Printed | Page 243 1st paragraph |
"you can use the add_slashes function" |
Anonymous | |
Printed | Page 249 bottom |
Figure 12-13 purports to display output from the mysql command-line |
Anonymous | |
Printed | Page 253 Figure 13-1 |
'echo ($_COOKIE ("test");" |
Anonymous | |
Printed | Page 254 Table 13-1 |
"0 for secure and 1 for insecure" |
Anonymous | |
Printed | Page 261 Figure 13-7 |
"SessionStart()" should be "session_start()". |
Anonymous | |
Printed | Page 263 Example 13-14. |
6th line in example says... |
Anonymous | |
Printed | Page 267 sentence following Example 13-16 |
"...sessions.gc_maxlifetime is in 100ths of a second, so, if you want a session timeout of 30 minutes, you would use a value of 18000" |
Anonymous | |
Printed | Page 339 Solution to Question 4-12 |
The given solution describes the meaning of the break keyword within a switch statement, but not its meaning within a loop. |
Anonymous | |
Printed | Page 345 Answer to Question 11-1 |
The variable to which sprintf() sends the output is not specified as one of its parameters. Rather, sprintf() returns a string. |
Anonymous |