Is php used in place of javascript, html, or frameworks | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

Is php used in place of javascript, html, or frameworks

10th Aug 2019, 11:00 PM
Joseph Onipede
Joseph Onipede - avatar
4 Answers
+ 2
Maybe you could elaborate on his problem instead of just saying “no” Toni Isotalo
11th Aug 2019, 1:35 AM
Ole113
Ole113 - avatar
+ 2
Most sites just need a front end and can be made with javascript and html. Php provides a back end in case you need to communicate with a persistant database. The lines are getting a little blurry now, since Javascript can also do back end via node.js. But that's sort of new… traditionally JS is just front end. Pretty much every language has multiple frameworks to choose from, that is not a language-specific thing. For example some of PHP’s frameworks are WordPress, Laravel, Symphony, and Drupal. While Javascript’s big ones are Vue, React, and Angular. A common tech stack that uses PHP for the backend would be Laravel + Vue. Almost any language can make a back end, so you have lots of choices there, but Javascript and HTML are the languages of all frontends.
16th Aug 2019, 5:20 PM
TelFiRE
TelFiRE - avatar
+ 1
No. PHP is a server-side language which can be used to serve webpages to the browser and perform operations on data returned. It also has its own frameworks like Lavarel and Yii. JavaScript is a client-side scripting language also with its own frameworks. Therefore you cannot replace JavaScript and HTML ("client-side") with PHP ("server-side").
16th Aug 2019, 9:25 AM
Nboumakis
0
No it's not possible
10th Aug 2019, 11:19 PM
Toni Isotalo
Toni Isotalo - avatar