+ 4

Why PHP is used to output html elements when html elements could be use to directly output content

5th Mar 2017, 3:39 PM
Raghav Gupta
Raghav Gupta - avatar
2 Antworten
+ 5
for D purpose to make a page dynamic.... yup a single sentence answer would b dis
5th Mar 2017, 3:45 PM
Ronit Kumar
Ronit Kumar - avatar
+ 1
HTML is the skeleton of a website page but if you want to create, for example, a blog, you will probably feel tired to create 100 blocs with content, one by one. PHP is a langage created to dynamicly create HTML, it cans create 100 blog post block in a split of second by communicating with a database containing your blog articles informations. HTML manage the viewing part when PHP handle informations to write inside HTML. With HTML you will need to write : <1 block> <1 block> <1 block> etc... With PHP it will looks like: Create 10 times <1 block> with different datas.
5th Mar 2017, 3:44 PM
Geoffrey L
Geoffrey L - avatar