Is it better to use PHP than JS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Is it better to use PHP than JS?

PHP and JS

12th Dec 2016, 2:57 AM
Charlie Plett
Charlie Plett - avatar
3 Answers
+ 1
Charlie, it's not a correct question, both have different working domain and are generally used for same softwares, php is a server side scripting language it ll help u interact with the servers or online services, it runs on the server but JavaScript is a client side scripting language it helps to make ur webpage dynamic and better interact with users. it runs on users browser
12th Dec 2016, 4:32 AM
Morpheus
Morpheus - avatar
+ 1
You'll probably want to use both; PHP on server side and JS on client side. You will need a webserver for PHP whereas with JS you can add plain JS to an HTML file and open it in your browser without needing a server. Basically what a server does is interpret the PHP and sends the interpretation to the client. The interpretation could contain JS and HTML.
28th Mar 2017, 4:21 PM
Jeromy Reimer
Jeromy Reimer - avatar
- 2
php
12th Dec 2016, 3:29 AM
Sanket Deshpande
Sanket Deshpande - avatar