Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
PHP is a programming language. Node.js is not a programming language, it is rather an interpreter of Javascript code (due to the Google Chrome V8 engine) to the operating system installed on the server. But Node.js is more than just that because it is extended with the libuv library that focuses on asynchronous I/O.
PHP is a programming language. Node.js is not a programming language, it is rather an interpreter of Javascript code (due to the Google Chrome V8 engine
php language is very easy and interesting Developement Language
It depends on the nature of the work. And further more PHP is a programming language and Node.js is a translator for js.
This flexibility contributed to the popularity of the language,PHP is now used on more than 80% of web
for the backend, PHP is better and Node.js is not for the backend.
I say that php and hadoop.
Node.js is not a programming language but php is programming language and if someone ask that which platform is batter for backend development then I would say that it depends on the nature of given task or project.
Personally I would choose PHP over Node every time. It’s considerably more mature, the toolchain is great, the package manager (Composer) is brilliant, and libraries are available for almost everything.
When I switch from PHP to JS I’m always dismayed by the lack of type hinting, for example. Sure, you can use TypeScript (and you really should), but it’s not baked into the language.
PHP (hypertext preprocessor) is a general purpose scripting language which has been designed for web development purpose. Node.js is a javascript programming language that runs on the server. It is used to make web pages interactive and dynamic too.Concurrency - PHP uses multi-threaded blocking I/O to carry out multiple tasks to run parallels alongside each other. Node.js uses event-driven non blocking I/O execution model.Execution - PHP is synchronous. Node.js is asynchronousExecution Speed - PHP is slower than Node.js where as node.js is Faster than PHP and also light weight compared to PHP.Web Server - PHP runs on the Apache web server. It can also run on IIS web server in case of a windows machine. Node.js NPM does not need a web server, it runs on its own run time environment.
As Node js has many advantages over php,many companies are switching from php to node js
you can check link below for applications of node js
9 Famous Apps Built with Node.js
Advantages of node js over php
it is single threaded
it is non blocking i.e has asynchronous calls
it can handle many requests than php
node js run on v8 engine of google chrome which is written in c++ and node also in c++,which makes it super blazingly fast
and many more features