PHP Hacks by Jack D. Herrington This errata page lists errors outstanding in the most recent printing. If you have technical questions or error reports, you can send them to booktech@oreilly.com. Please specify the printing date of your copy. This page was updated July 28, 2008. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification Confirmed errors: [59] bottom 3rd of page; Second example starting with start_section("two","Report part two") using a hidden table within
does not work. Text "This is a table of numbers and such:" displays when spinner is clicked but not table of data. This has been updated on the code in the download. (88) Author note about Hack 25: the PHP 5 interpreter needs to be installed with the calendar option for this hack to work, or that if that is not done the php.net site contains code that can be used as an alternative. {102} Table-generating code at the bottom half of the page; The looping construct that creates the rows and columns of the table will output 'bad' HTML depending on the number of images in the pics/ directory. If pics/ contains 1-4 images, then the table is well-formed (only a single row with 1-4 columns. If pics/ contains exactly 5 images (or a multiple of 5 images), then the well-formed table rows will be followed by a row with no td elements (""), and the resulting HTML will fail validation (ie. http://validator.w3.org/) For any other number of images, the last row of the table will be short 1-4 td elements (even though the resulting HTML will pass validation). (195, 201) Figure 5-17 on page 195; Figure 5-19 on page 201; Figures 5-17 and 5-19 should be swapped. [231] Figure 6-9, 2nd (lower) text label on right (response to Second submit); Change "Accepted" to "Declined because of duplicated ID" {256} Figures 6-25 and 6-26 should be swapped. {262} example code; example code not included in the code section. Need to add code to the downloads in a new directory called 'hack62' or something similar. {283} Figure 6-39; Remove "Checkout" link under Shopping Cart (308) Figure 7-7; TanleCreator and TanleCreatorImp should be TableCreator and TableCreatorImp respectively. {310} Figure 7-8; In the DocumentURLHandler class diagram, "ImageURLHandler" should be "DocumentURLHandler"