Demonstrates the remarkable similarities between Node.js and PHP, and teaches readers how to port an entire PHP web application to Node.js.A simple website might have two kinds of users: many ordinary users, and a single administrator user, probably the owner, ... The User class also has a homePage() function, which returns the HTML for an ordinary usera#39;s home page: alt;?php ... Similarly, the name of the user can be shown using the getName() function in the folalowing PHP code fragment: $me = new User(a#39;guesta#39;); print a#39;My username is a#39;.
|Title||:||Node.js for PHP Developers|
|Publisher||:||"O'Reilly Media, Inc." - 2013|