Errata

Node.js for PHP Developers

Errata for Node.js for PHP Developers

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
PDF Page viii
Code Sample

the variable names are incorrect.

print json_encode($r);

should be
print json_encode($rooms);

and
res.end(JSON.stringify(r));

should be
res.end(JSON.stringify(rooms));

Mitchell T Young  Jan 17, 2013 
Printed Page VIII
Preface VIII Page

The first example in the preface shows a PHP code based on a real world application, the last line before de curly brace shows the following code:

print json_encode($r);

But the $r variable is not defined along the code , the author of this code possibly wanted to refer the variable $room.

Steven Sierra Forero  Dec 18, 2012