difference between PHP and HTML

0 votes
asked Jul 20, 2013 in PHP by BasicQuestion (1,355 points)
Hi all

         What is basic difference between the PHP & HTML?

1 Answer

0 votes
answered Jul 20, 2013 by jonathan (3,105 points)

The filetype is just a way to identify the file, you can't always trust them.

Depending on your web server configuration, you will see different results.

.html is generally use just for html with no serverside code.

.php is used for serverside php code and html if required.

They can be used for anything, it just depends on the setup.