Skip to main content

Which language is better....PHP or Node Js?

hey ..I am back with another interesting question....which language is better php or node js.
for understanding this theory you have to first understand the concept of webserver.
What is webserver.....???
webserver is a system which uses https request to perform operations.
let us consider about this ..suppose I have a website like allnonecyberteam.com.If user request any page then first webserver go to open file and then response back......now I think  its clear what is webserver.
now lets consider php and node js.
how does these works.
first consider about php.
php requset pages synchronus type,means it first go to server and open files and then response back
and after that it prepare to handle next requset.
php is slower than node js.
why its slower than node js we will talk about it after understanding concept of node js.
php works on apache web server .php also can run on IIS web server in case of windows machine.
Php is much simpler than node js.

Now consider about Node js.
node js has its own environment.
it uses javascript in backend side so it create its own server.NPM(Node package manager) doesnt need any webserver.
so basically both technology are good but if which language you want to use its depend on your project nature.
if you need centralized server and portablity then use php otherwise if you want speed,real time data and same language across the stack then use node js.
thank you......
   

Comments

Popular posts from this blog

networks nd networking 1

Types Of Network •LAN - Local Area Network is in a small geographical area, such as a college or office building. •WAN - Wide Area Network Combination of multiple LANs. •WLAN - Wireless Local Area Network Links two or more devices using some wireless distribution method and usually providing a connection through an access point to the wider internet. Local Area Network (LAN) •A LAN connects network devices within a limited geographical area such as office buildings or schools. •The data transfer is managed by a transport protocol such as TCP/IP. •The transmission of data is performed by the access method (Ethernet, Token Ring, etc.). Wide Area Network (WAN) •A WAN covers a wide geographic area, carrying data over long distances, such as a country •WANs can be formed by different LANs •The connection between different LANs may not be permanent •WANs are sophisticated networks, but transmission speeds have generally been slower than those commonly achieved on LANs WLAN (Wireles

Internet Of Things -IOT

Hey there! Have you heard of IoT? Yes the most popular thing in industry. If not, it is Internet of Things. Do you use smart watches or have you heard about smart city, smart house, these are the practical application of IoT. Didn’t get it?If you just Google “what is IoT?”, you will get a technical answer: “The Internet of Things (IoT) is a system of interrelated computing devices, mechanical and digital machines, objects, animals or people that are provided with unique identifiers and the ability to transfer data over a network without requiring human-to-human or human-to-computer interaction.”  Simply, The Internet of Things, or IoT, refers to the billions of physical devices around the world that are now connected to the internet, collecting and sharing data. Now you’ll ask me “Okay, but why is it so much important?”. Today majority of devices works on sensors but sensors will not live forever. In other words, cheap sensors are not going to be 100% reliable, 100% of the time. Physic

Kali Linux - Installation and Configuration

Kali Linux is one of the best security packages of an ethical hacker, containing a set of tools divided by the categories. It is an open source and its official webpage is https://www.kali.org. Generally, Kali Linux can be installed in a machine as an Operating System, as a virtual machine . Installing Kali Linux is a practical option as it provides more options to work and combine the tools. You can also create a live boot CD or USB. All this can be found in the following link: https://www.kali.org/downloads/ BackTrack was the old version of Kali Linux distribution. The latest release is Kali 2018.1 and it is updated very often. To install Kali Linux − First, we will download the Virtual box  or Vmware workstation and install it. Later, we will download and install Kali Linux distribution. Instead of downloading  the images file you all can download that ova file extension . The benefits of it is that you do not have to install it. What you have to do is to just import it and r