Henry created the topic: When to use PHP or Node.js
When to use PHP?
Centralized server: In case we don't plan to scale our application to multiple servers, we can use LAMP (Linux, Apache, MySQL and PHP). This may vary depending on project requirements.
Portability: PHP is a flexible language. The low cost of web hosting and the availability of servers for PHP is beyond the table. PHP can run on almost any platform that has Apache, IIS installed and has a supported database system, which makes PHP applications flexible and easy to deploy.
When to use Node.js
Speed: Node.js is much faster than PHP when it comes to execution speed, if speed is all you need for your application, such as a single-browser multiplayer game or app For chat applications, Node.js is a better choice than PHP.