+ 9
Is php used in place of javascript, html, or frameworks
4 Respostas
+ 2
Maybe you could elaborate on his problem instead of just saying “no” Toni Isotalo
+ 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.
+ 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").
0
No it's not possible