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

NMAP and ZenMAP

NMAP and ZenMAP are useful tools for the scanning phase of Ethical Hacking in Kali Linux. NMAP and ZenMAP are practically the same tool, however NMAP uses command line while ZenMAP has a GUI. NMAP is a free utility tool for network discovery and security auditing. Many systems and network administrators also find it useful for tasks such as network inventory, managing service upgrade schedules, and monitoring host or service uptime. NMAP uses raw IP packets in novel ways to determine which hosts are available on the network, what services (application name and version) those hosts are offering, which operating systems (and OS versions) they are running, what type of packet filters/firewalls are in use, etc. Now, let’s go step by step and learn how to use NMAP and ZenMAP. Step 1 − To open, go to Applications → 01-Information Gathering → nmap or zenmap. Step 2 − The next step is to detect the OS type/version of the target host. Based on the help indicat...

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. Ph...

networks nd networking 2

Network Topologies •There are three main local area network (LAN) topologies: Bus Star Ring •Other network topologies include: Mesh Wireless What is a server? •Server is a machine which provides services to the nodes or computers in a network and those computers using services are known as client machines. •For each any every service client have to request to the server. Client Server Model   Servers •Computers or processes that manage network resources Disk drives (file servers) Printers (print servers) Network traffic (network servers) •Example: Database Server A computer system that processes database queries Clients •Application that run on a computer •Rely on a server for Files Devices Processing power •Example: E-mail client An application that enables you to send and receive e-mail Types of Servers •Application Servers •Audio/Video Servers •Chat Servers •Fax Servers •FTP Servers •Groupware Servers •IRC Servers •List Servers •Mail Servers •News Server...