I might be wrong on this, but are more and more web pages using .php extentions now? I know that there's not really a difference between .html and .htm but why would you use .php if there's no php coding and only html tags in your web page? What are the pros and cons? Would one use .php so that down the road php code can be inserted in the file?
Most CMS' use PHP and CMS' are insanely popular. If you are looking at the view source of the site, PHP doesn't show. The extension is used to tell the server it needs to process php in the file, so its not pre-empting anything, its using PHP.
Thanks for your reply AP. The reason I was asking was because my neighbor just finished creating his personal website and basically coded it with CSS and html. All of his files have PHP extentions and was wondering. I believe the only php code would be the opening and closing php tags so that the file could be recognized. The next time I see him, I will ask him.
PHP is a programming language. You can do more with PHP like creating dynamic pages and hiding the real source. BUt With HTML you can less. But you can use both HTML and PHP to get the highest benefit.
yeah, php is a good and popular webiste language which you can use to create dynamic webpages and the visitors can't see the source code as the html website.
Well first of all php is server side language and it does not show in client side code. You can only see html code on every web site because that is standard for showing content on the web. As for extensions there is no difference between html and htm. There are web sites on which you can not see extensions of the file because of .htaccess rewrite rules.
I don't think people would use .php unless it has some PHP code or they're planning to put some in later. I would just use .html if you're not planning to use any PHP code, not .htm because I think they made that file extension back when they could only have 3 letters... I could be wrong...
everything is being translated to html at the end of the day read about static and dynamic pages, a website depends on what goals the developer wants.