+ 1
What server side language should I use? PHP or node.js? Or something else??
2 RĂ©ponses
+ 2
Both have there pros and cons.
PHP
Pros:
âą Easy to deploy; Just install PHP, do some configuring (you should definitely configure PHP but it's usually not necessary) and drop your PHP files in the webroot.
âą Used everywhere.
âąEasy to learn.
Cons:
âą Weak language; Because PHP grew organically it is a very odd language and has many querks.
âą Because of how easy it is to learn you'll find some really bad code out there.
Node.js
Pros:
âą It's JavaScript with some goodies so if you know JavaScript it'll be a breeze to learn.
âą It's very fast.
âą Asynchronous meaning it can handle concurrent requests easily.
âą Can interact with the user directly unlike PHP.
âą NPM.
Cons:
âą Not many mature frameworks.
âą Not as widely used as PHP.
âą Only runs on one CPU so doesn't scale as well.