.php or .html?


#1


I want to know what is the difference between say a file xyz.php and xyz.html where both the files have same code which uses php language. I mean I tried the code given in the exercises in .html files and it works.Sorry if I couldn't explain my problem properly.



#2

well, browsers (firefox, chrome, IE and more) only understand html.

we can use .php to retrieve data from a database, put it into an html file, and serve it to the browsers who requested it

so, PHP is a server side language (its on the backend of a website)


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.