Learning PHP, MySQL & JavaScript

Errata for Learning PHP, MySQL & JavaScript

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.

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
ePub Page 1
Example 21-1

In the example 21-1 you wrote following code to include jQuery: <sript src = 'jquery-3.2.1min.js'> But in the previous pages you said that to access jQuery through CDN we need: <script src=code.jquery.com/jquery-3.2.1.min.js'> Could you explain the difference please.

Anonymous  Aug 27, 2019 
PDF, ePub Page 2
Examples 17-2, 17-3, 17-6, 17-7

17-2 and 17-3 did not work for me, it displayed file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL 17-6 and 17-7 displayed only the title but not the XML. I have zero experience in web development, but after searching for a solution i found out that you have to add following code in the PHP files: $arrContextOptions=array( "ssl"=>array( "verify_peer"=>false, "verify_peer_name"=>false, ), ); I do need a explanation on why it did not work and what the new code means.

Anonymous  Aug 24, 2019 
Printed Page 30
2nd paragraph

Editra site is no longer available since July 2019: https://en.wikipedia.org/wiki/Editra

Charles  Sep 04, 2019 
PDF Page 399
Example 17.2 <script>

The following lines of code need removing from the script else the browser will refuse to set them and throw an error request.setRequestHeader("Content-length", params.length); request.setRequestHeader("Connection", "close"); XMLHttpRequest isn't allowed to set these headers, they are being set automatically by the browser. The reason is that by manipulating these headers you might be able to trick the server into accepting a second request through the same connection, one that wouldn't go through the usual security checks - that would be a security vulnerability in the browser.

Malenko  Sep 01, 2019 
PDF Page 685
1st paragraph

It seems that in the last chapter (27, Bringing It All Together) the asynchronous calls were removed. For example, I can't find the empty <span> with id of info nowhere. The file signup.php is somewhat shorter than in the 2nd edition of the book. So some modifications has been made to the code but the description in the book is not updated in the last chapter.

Tomi Halonen  Aug 18, 2019