1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

html vs htm vs php file extentions

Discussion in 'HTML & Website Design' started by J.L.B, Feb 8, 2012.

  1. #1
    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?
     
    J.L.B, Feb 8, 2012 IP
  2. ApinaPress

    ApinaPress Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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.
     
    ApinaPress, Feb 9, 2012 IP
  3. J.L.B

    J.L.B Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    J.L.B, Feb 9, 2012 IP
  4. ThePassiveIncomeBlog

    ThePassiveIncomeBlog Active Member

    Messages:
    847
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    50
    #4
    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.
     
    ThePassiveIncomeBlog, Feb 9, 2012 IP
  5. b2tang

    b2tang Peon

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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.
     
    b2tang, Feb 11, 2012 IP
  6. comadmin

    comadmin Peon

    Messages:
    20
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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.
     
    comadmin, Feb 11, 2012 IP
  7. simoncrequer

    simoncrequer Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    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...
     
    simoncrequer, Feb 11, 2012 IP
  8. BigTim3

    BigTim3 Guest

    Messages:
    266
    Likes Received:
    1
    Best Answers:
    2
    Trophy Points:
    0
    #8
    yea just keep it simple so not to confuse yourself
     
    BigTim3, Feb 13, 2012 IP
  9. adityamenon

    adityamenon Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #9
    Your neighbor is trying to appear cool :)
     
    adityamenon, Feb 16, 2012 IP
  10. awais_aslam

    awais_aslam Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Simple Php is used for dynamic pages while html is static language.
     
    awais_aslam, Feb 17, 2012 IP
  11. apnamirpur

    apnamirpur Greenhorn

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #11
    if you just want to change your file extension you may use .htaccess code
     
    apnamirpur, Feb 17, 2012 IP
  12. minisouls

    minisouls Member

    Messages:
    83
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #12
    If u want to make changes daily in your site then you used php otherwise html is better.
     
    minisouls, Feb 17, 2012 IP
  13. Ella_Z.

    Ella_Z. Peon

    Messages:
    544
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #13
    I think jsp is going to be more popular than all of them!
     
    Ella_Z., Feb 24, 2012 IP
  14. Kelley2011

    Kelley2011 Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Kelley2011, Feb 24, 2012 IP
  15. YouJelly

    YouJelly Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #15
    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.
     
    YouJelly, Feb 26, 2012 IP