===================================================================================================== CORRECTIONS TO THE TEXTBOOK: LAST UPDATED: December 12, 2009 ===================================================================================================== Corrections are provided in this simple text file format for ease of copy and paste. ===================================================================================================== CHAPTER 1 CORRECTIONS: ===================================================================================================== None reported at this time. ===================================================================================================== CHAPTER 2 CORRECTIONS: ===================================================================================================== Page 30: before the last paragraph (beginning "NOTE") insert a new short paragraph as follows: IMPORTANT: Refer to the textbook Web site (http://www.mikeokane.com/textbooks/WebTech/support.php) for the latest updates and corrections to files provided on your CD. ===================================================================================================== CHAPTER 3 CORRECTIONS: ===================================================================================================== Page 73: The 5th line of the requirements should say "number of health tokens" instead of repeating "number of experience tokens". ===================================================================================================== CHAPTER 4 CORRECTIONS: ===================================================================================================== Page 82: Code sample: myWeb3.html. This code contains a mistyped link in an anchor tag - should be http://www.w3Schools.com and not http://www.w2Schools.com Page 88: Code sample: myWeb4.html. This code contains a mistyped link in an anchor tag - should be http://www.w3Schools.com and not http://www.w2Schools.com ===================================================================================================== CHAPTER 5 CORRECTIONS: ===================================================================================================== None reported at this time. ===================================================================================================== CHAPTER 6 CORRECTIONS: ===================================================================================================== Page 188: Exercise 5. The last paragraph should refer to gameStatus.dat and not gameStatus.txt ===================================================================================================== CHAPTER 7 CORRECTIONS: ===================================================================================================== Page 216: Question #13 in the Review Questions: strtopper() should be strtoupper() Page 221: Add the following sentence to the end of the first paragraph: Assume that each traveler has a separate rooom. In other words this sentence should appear after: "(so for example a trip to Tokyo by two people for 5 nights would cost a total of $5550).": ===================================================================================================== CHAPTER 8 CORRECTIONS: ===================================================================================================== Page 244: In the wage8.php code sample, the following line is missing two ! characters: elseif( is_numeric($hourlWage) OR is_numeric($hoursWorked)) should be: elseif( !is_numeric($hourlWage) OR !is_numeric($hoursWorked)) Page 244: In the last paragraph on the page, replace the word OR with the word AND in the second sentence. The sentence should state: "We can alternatively use the characters && to represent the AND operator." ===================================================================================================== CHAPTER 9 CORRECTIONS: ===================================================================================================== None reported at this time. ===================================================================================================== CHAPTER 10 CORRECTIONS: ===================================================================================================== Page 311: Next to last line on the page. "associated" should be "associating" Page 338: In the last line of the code sample in Question 11, "fclose($scoreFile)" should be "fclose($ageFile)" Page 339: In the last line of the code sample in Question 12, "fclose($scoreFile)" should be "fclose($ageFile)" Page 339: In the last line of the code sample in Question 13, "fclose($scoreFile)" should be "fclose($ageFile)" ===================================================================================================== CHAPTER 11 CORRECTIONS: ===================================================================================================== Page 375: In the last line of the code sample in Question 6, "$sales[i])" should be "$sales[$i]" Page 376: In the last line of the code sample in Question 7, "$sales[i])" should be "$sales[$i]" Page 376: In the last line of the code sample in Question 8, "$sales[i])" should be "$sales[$i]" Page 377: In the last line of the code sample in Question 11, "$sales[i])" should be "$sales[$i]" Page 381: The last line of exercise # 4 should be "displayed" not "isplayed" ===================================================================================================== CHAPTER 12 CORRECTIONS: ===================================================================================================== Page 418: The first paragraph begins "Your Chapter 11" and should be "Your Chapter 12". Page 418: The second half of the page contains five references to "Chapter11" These should all be changed to "Chapter12" (one word, no spaces) Page 419: The first paragraph refers to "Chapter11" This should all be changed to "Chapter12" (one word, no spaces) Page 420: Add the following as the last sentence to exercise 4: "Note: you can download incTravel.php from the Web site if it is missing from your folder." ===================================================================================================== CHAPTER 13 CORRECTIONS: ===================================================================================================== None reported at this time. ===================================================================================================== APPENDICES CORRECTIONS: ===================================================================================================== Page 450: At the top of the page, replace the two lines referring to Mac OS X installations with the following lines: For Mac OS X installations, refer to the installation instructions at: http://www.mikeokane.com/textbooks/WebTech/support.php Page 450: under the Problems with Installation section, replace the first sentence with: "If you need help installing the Web server (xampplite) on Windows, Macintosh or Linux computers, refer to the help documents on the textbook Web site: http://www.mikeokane.com/textbooks/WebTech/support.php" Also under the Problems with Installation section, in the first sentence of the second paragraph, change "However you may" to "Note that you may" Page 450: In the "Adding the Coursework.." section, third line, change "Under Mac OS X: /Applications/xampp/htdocs/" to "Under Mac OS X: /Applications/MAMP/htdocs"