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 or .php?

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

  1. OSSEO

    OSSEO Active Member

    Messages:
    1,430
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    53
    #41
    Its depend on your business. If your business need daily update then you need CMS( PHP) because in HTML you have to give lots of time for adding new page , product or text.
     
    OSSEO, Oct 4, 2011 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #42
    It's posts like this---^ that confirm most people on DP don't know what they're talking about.
     
    drhowarddrfine, Oct 4, 2011 IP
  3. propose girl

    propose girl Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #43
    i prefer php.
     
    propose girl, Oct 4, 2011 IP
  4. mnicklas14

    mnicklas14 Greenhorn

    Messages:
    74
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    18
    #44
    Yeah sure there are other methods for doing so such as using .htaccess or including PHP code from other file extensions, but that's rather irrelevant...maybe you should address the initial topic first before addressing a simplified answer.
     
    mnicklas14, Oct 4, 2011 IP
  5. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #45
    If so then it makes your post irrelevant, too.
    I did. Two weeks ago. You are late to the party and extending an already dead thread.
     
    drhowarddrfine, Oct 4, 2011 IP
  6. yho_o

    yho_o Well-Known Member

    Messages:
    353
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    #46
    what are you talking about ^^, html is markup language, however php is hypertext processor php its a programming languages just like asp, perl , etc

    html is secured 100% cuz it has nothing to do just displaying the layout/colors etc

    but php is usually connected with databases ,so any hacker gonna play with your site, with some mysql injection codes he may get access to your database

    so you've to take care of your php code, and use special functions to prevent mysql injections

    both are totally different
     
    yho_o, Oct 8, 2011 IP
  7. DOCtriN

    DOCtriN Well-Known Member

    Messages:
    184
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #47
    It depend on how complicated your site. If you want make your static page, you can use HTML (.html / .htm) but if you prefer to make more complicated site, such as using dynamic content such as Tumblr, Facebook or Twitter you should use PHP to make it more easier to deliver the content. But all the site is combination between HTML + CSS + (any language, such as PHP, ASP.NET, Ruby on Rails or whatever)
     
    DOCtriN, Oct 9, 2011 IP
  8. zabalex

    zabalex Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #48
    Hi,
    Its your choice totally, you have to decide what extension you want to use. There are no advantages and disadvantages in search engine point of view. If you want a simple static website you should go for html or htm extension. All php codes are compatible with these extensions as well. You can also include php codes, files or functions in .html or .htm extension files. If you want some complex coding on the page .php is good to go for. It really do not matter which extension you are using as far as design and SEO is concerned. Since the design code of all the extensions are same just the functionality differs by adding different language codes.

    regards
    zabalex
     
    zabalex, Oct 9, 2011 IP
  9. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #49
    Boy, this line for is getting longer. I'll bet 3 years from now it'll still be going on.
     
    drhowarddrfine, Oct 9, 2011 IP
  10. zabalex

    zabalex Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #50
    This is just because of misunderstanding, as some beginner think that the extension .html and .php makes the Markup Language different. But they have to understand that you can save same file in any extension if there are no server side code involved. However a server side code is compatible with .html extension as well even if it is written in <?php......?>.

    Even though they think a file with the .php extension has some different markup language. They have to understand that even if the extension is .php or whatsoever to display a webpage in a browser it must be within <html> ....... <body> ........</body></html>. there must be <div> or <table> and so on to align the page elements.

    Regards
    zabalex
     
    zabalex, Oct 9, 2011 IP
  11. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #51
    No. It's due to a lack of education. Most posters on DP lack knowledge of fundamentals of anything related to the web.
     
    drhowarddrfine, Oct 9, 2011 IP