What is the difference between PHP and JS? - ProProfs Discuss
Advertisement

What is the difference between PHP and JS?

Asked by R. Jones, Last updated: Apr 17, 2024

+ Answer
Request
Question menu
Vote up Vote down

4 Answers

S. Barnes

S. Barnes

Driving down to Knowledge town

S. Barnes
S. Barnes, Chauffeur, Graduate, Seattle

Answered Dec 02, 2020

PHP and JS are two popular programming languages employed for website development. Java Script conducts things at the server-side, while PHP is based on C language, so anyone with adequate knowledge of C would find PHP easy to learn while improving websites' capability and relevance.

Java Script is a versatile and high-level scripting language mainly used to make web pages interactive. It was initially developed to perform client-side functions, but it was created to build interactive web interfaces and make websites look more inviting. PHP, on the other hand, is short for Hypertext Preprocessor.

It is an open-source programming language utilized for server-side web developments, which means the scripts are only implemented on the server with PHP installed. Unlike Java Script, it is tasked with server-side tasks such as creating custom web content, processing requests, validating users. Most websites run on PHP because of its strengths as an influential back and content management system.

upvote downvote
Reply 

A. Daniels

A. Daniels

A. Daniels
A. Daniels, Professor, San Diego

Answered Oct 23, 2020

PHP and JS are two types of programming languages. They are used in designing web pages. PHP is an abbreviation for personal home page. It is also known as the Hypertext Preprocessor. This has been around since 1994, when Rasmus Lerdorf introduced it.

He introduced this idea to help track how many people visited his resume that was online. JS came about a year later, in 1995. It stands for Javascript and Brendan Eich designed it. Before it became Javascript, it was known by its names Mocha and then LiveScript. The purpose of this language is to design websites and ensure they are responsive.

upvote downvote
Reply 

Ken Wilson

Ken Wilson

Want to learn new things and share my knowledge

Ken Wilson
Ken Wilson, Marketing Analyst, MBA, Miami

Answered Oct 08, 2020

There are some people who may be familiar with both PHP and JS but may not exactly know why they are different from each other. JS is known to be a high−level programming language that can be used for front−end development. This is very versatile too. PHP, on the other hand, can be used for back−end language.

This is known to be very capable of doing different things as long as it would be used with the proper framework. JS can be mixed with other programs such as HTML and AJAX. PHP can also be embedded but only with HTML. JS can definitely be used if you would like to create highly active web interfaces. PHP can be used for custom web content and so much more.

upvote downvote
Reply 

J. Emmerich

J. Emmerich

J. Emmerich
J. Emmerich, Web Content Writer, New York City

Answered May 06, 2020

PHP (personal home page) and JS (JavaScript) are two programming languages that are generally used in web design. PHP refers to Hypertext Preprocessor, which was defined by Rasmus Lerdorf in 1994. The first thing he used this PHP was to track the number of visits to his online resume.

Many developers like to use this server-side scripting language, which is used to create interactive and dynamic web pages on several distinguished platforms. JS, or fully called Javascript, was developed by Brendan Eich in the year 1995. The name given to it was originally Mocha, and then it was changed to LiveScript, and currently called JavaScript.

The major function of JavaScript is to design web applications and also create responsive websites. You can only combine PHP with HTML, whereas you can combine versatile JS with AJAX, XML, and HTML. In addition, you execute PHP on the server, while you can execute JC on your PC.

upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.