What's the difference between the two file extensions?
I'm under the impression that .php files do the exact same thing as a .html file, but one can read php code and the other can't. Am I right?
If so, why don't more people just save their webpages as .php for default?
Also, if you have more than one index file in a directory (index.html, index.php, index.asp) what will happen?
The only problem I'd see with .php for just plain .html (besides that it's pointless) is on a server without php installed, I'm not sure that .php file will be treated as .html if the server is not configured for it (I feel like it might prompt for a download on some browsers). I'm not entirely sure though.
PHP and HTM are same up to the limit that both are ascii files. But the difference is vast enough. HTML are static. They can display the page as it was created in design time. PHP can create dynamic pages. That means the programmer will create the framework and behaviour. When the page actually run, it will generate html code and display the different page dependent upon the different states and selections.
Basically, PHP file extension is used for files that contain PHP code. It also needs a server that supports PHP for the script to be executed.
Also, HTML isn't a programming language like PHP. It's a markup language used to format how text should be displayed.
If you're not using PHP script in your webpage, I don't see the reason why you should save it as .php.
hey there ya'll php is the best and the hottest even asp does not seem to be good enough and the good part bout it its got an unimaginable library of info and i think it will soon be translated into pure plain and simple english well for now what should i say try and learn php if its only html you know about well goto sitepoint and do that
well like u said earlier changing the file name would be just stupid