.html or .php?

Discussion in 'HTML & Website Design' started by marksmit, Sep 23, 2011.

  1. #1
    Which web page you prefer more - .html or .php?
     
    marksmit, Sep 23, 2011 IP
  2. linkmonsters

    linkmonsters Greenhorn

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    PHP is more secured then HTML. But to use HTML it is easy then PHP.
    Code of HTML are easy to understand.

    Thanks
    linkmonster
     
    linkmonsters, Sep 23, 2011 IP
  3. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #3
    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.
     
    drhowarddrfine, Sep 23, 2011 IP
  4. workingsmart

    workingsmart Well-Known Member

    Messages:
    411
    Likes Received:
    12
    Best Answers:
    9
    Trophy Points:
    120
    #4
    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...
     
    workingsmart, Sep 23, 2011 IP
  5. Rising_Star

    Rising_Star Active Member

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    63
    #5
    what difference does that make??? u can always use free html tags in a .php page until its out of <?php ..... ?> tag...
     
    Rising_Star, Sep 23, 2011 IP
  6. naif

    naif Well-Known Member

    Messages:
    468
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    118
    #6
    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
     
    naif, Sep 23, 2011 IP
  7. workingsmart

    workingsmart Well-Known Member

    Messages:
    411
    Likes Received:
    12
    Best Answers:
    9
    Trophy Points:
    120
    #7
    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....
     
    workingsmart, Sep 23, 2011 IP
  8. ApocalypseXL

    ApocalypseXL Notable Member

    Messages:
    6,095
    Likes Received:
    103
    Best Answers:
    5
    Trophy Points:
    240
    #8
    :eek:

    Yep , totally agree on this one . DP hit rock bottom on intelligence several times this month .
     
    ApocalypseXL, Sep 23, 2011 IP
  9. technoamarie1

    technoamarie1 Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    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...
     
    technoamarie1, Sep 28, 2011 IP
  10. pj hardon

    pj hardon Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #10
    I use both, no need to choose one over the other.
     
    pj hardon, Sep 28, 2011 IP
  11. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #11
    So tell us, oh wise ones, how do you create web pages in PHP with no HTML at all. Anxiously awaiting your answer.
     
    drhowarddrfine, Sep 28, 2011 IP
  12. burminsky_pv

    burminsky_pv Peon

    Messages:
    78
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Nowedays I think mostly is used .php because of it's dynamic features.
     
    burminsky_pv, Sep 28, 2011 IP
  13. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #13
    So tell us, oh wise one, how do you create web pages in PHP with no HTML at all. Anxiously awaiting your answer.
     
    drhowarddrfine, Sep 29, 2011 IP
  14. otshare

    otshare Peon

    Messages:
    70
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #14
    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
     
    otshare, Sep 29, 2011 IP
  15. jonnycover

    jonnycover Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    I always use php and .htaccess to make pretty urls (site.com/about/) :)
     
    jonnycover, Sep 29, 2011 IP
  16. patrick0001

    patrick0001 Member

    Messages:
    340
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #16
    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.
     
    patrick0001, Sep 29, 2011 IP
  17. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #17
    @ 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.
     
    radiant_luv, Sep 30, 2011 IP
  18. Nice!

    Nice! Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    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.
     
    Nice!, Sep 30, 2011 IP
  19. avinasch

    avinasch Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19
    If you are asking for SEO, then i think .html is more seo friendly.
     
    avinasch, Sep 30, 2011 IP
  20. vitalix

    vitalix Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #20
    You can make both but the final result(as search engines see it) is the same.
     
    vitalix, Sep 30, 2011 IP