PHP is more secured then HTML. But to use HTML it is easy then PHP. Code of HTML are easy to understand. Thanks linkmonster
There must be something in the air today because there are so many braindead answers on DP today. Seems there's a lot of braindead questions, too.
You can't compare them or make a preference to one over the other.... You aren't kidding.... sheesh... Getting really bad around here lately.... ugh...
what difference does that make??? u can always use free html tags in a .php page until its out of <?php ..... ?> tag...
I believe the original poster is asking if whether .html is the most preferred extension or .php for serving HTML documents on the Internet. My vote is for .html and my reasons are as follows: 1. It doesn't matter what your backend language is. You could be using PHP, Python or Perl but all these languages produce documents which are in HTML format so it's best to use .htm or .html extension instead of naming the document after the backend language. 2. It's significantly more popular than .php
I believe the original poster is asking if whether .html is the most preferred extension or .php for serving HTML documents on the Internet. Did you really post that with the intent on providing intelligent information? REALLY?.. Seriously?... You think file extensions are a naming convention?.. I'm not sure what's happening to DP lately, but it isn't good, at all....
In case of security PHP is better, and for normal pages HTML better but for designs i prefer both... It's not really matter what you choose, it matters how u use it...
So tell us, oh wise ones, how do you create web pages in PHP with no HTML at all. Anxiously awaiting your answer.
So tell us, oh wise one, how do you create web pages in PHP with no HTML at all. Anxiously awaiting your answer.
it just depends what the author of the web page wants. For static pages use HTML for dynamic pages use php/perl/python Ultimately code in php/perl/python will generate html web pages
For simple plain site, HTML is the choice, it is easy to develop. I use php, when I need to develop a shopping chart, directory, forum or blog.
@ OP, Browser engines only throws HTML tags of webpage, no matter what is used in the backend. and why comparing when both has different aspect of uses.
If you plan on using PHP in the future it would be smart to use .php extensions. Otherwise you'll have to fix all the url's in the search engines when you change the extensions.