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.

PHP vs HTML

Discussion in 'SEO' started by rohitbhisey, Jan 10, 2008.

  1. jamesicus

    jamesicus Peon

    Messages:
    477
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #21
    I don't wish to appear pedantic here, but it seems to me that expressing the proposition as "HTML vs PHP" can be misleading: as though one or the other can be used exclusively to produce a Web page. Of course that is not so -- Markup (HTML/ XHTML et al) must be used to produce a document that will render in User-Agents (Browsers) while PHP is one of several scripting languages that can be employed to manipulate such document rendering. I think the question is better put as "what is the difference between HTML and PHP?"

    James
     
    jamesicus, Jan 18, 2008 IP
  2. rohitbhisey

    rohitbhisey Banned

    Messages:
    706
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #22
    hi james,
    Thanks for your 3 "replies"..
    But i think after giving topic name as PHP vs HTML in that thread i had clear written ""Please explain me the difference between PHP and HTML files??""

    Hope u getting what i like to say;)

    Any ways Thanks ..

    Rohit
     
    rohitbhisey, Jan 18, 2008 IP
  3. webexpert

    webexpert Banned

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #23
    exactly, the best question can be "what is the difference between HTML and PHP?"

    but what i belive is, this topic poster really wanted to know the difference but he mistakenly write vs.

     
    webexpert, Jan 18, 2008 IP
  4. webexpert

    webexpert Banned

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #24
    Hello Rohit, Thanks for your PM :)

    i explained the difference in one of my previous posts if you got chance to look there.. let me try to explain again more clearly;

    HTML:

    HTML stand for "hyper text markup language", its just a markup language that browser can understand.. Internet browsers cannot understand any server side programming language like PHP, ASP, etc.. Internet browser can only understand HTML for dressing up the contents (layout design), as well as HTML, browsers can also understand all the client side scripting like javascript..

    What is an HTML File?

    * HTML stands for Hyper Text Markup Language
    * An HTML file is a text file containing small markup tags
    * The markup tags tell the Web browser how to display the page
    * An HTML file must have an htm or html file extension
    * An HTML file can be created using a simple text editor

    where PHP is a server side scripting.. a programming language (please note: HTML is not a programming language, its just a markup language, here markup means, its designs page contents in between tags like if you want to make bold anything you will do this <b>Nadir Ali Shah</b> here nadir ali shah has been enclosed in html tag b.)

    so PHP is a server side programming language.. Browser cannot understand PHP directly, But browser can understand PHP.. So, the question is, how browser will display the contents of PHP.. actually when you make a request of PHP page, it first goes to the webserver (like apache or IIS), these web servers translates (interprets) PHP coding and generates its HTML, then web server throws the generated (translated or interepreted) HTML to the browser so that browser like IE or FF can understand and can display the contents of PHP file....

    not sure you are a beginner or what.. but if you want to make an start... try w3schools.com.. excellent resource for the beginners..

    hope this explaination will be helpful..

    Thanks for your time..

    many thanks and kind regards,
     
    webexpert, Jan 18, 2008 IP
  5. jamesicus

    jamesicus Peon

    Messages:
    477
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #25
    Hi, Rohit. You are welcome and please accept my apologies -- I often forget what I read these days:
    "There are three sure signs of growing old; the first is loss of memory -- I have forgotten the other two."

    James
     
    jamesicus, Jan 18, 2008 IP
  6. rohitbhisey

    rohitbhisey Banned

    Messages:
    706
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #26


    Thank you very much webexpert for explaining so finely the difference between PHP and HTML..

    Thanx once again
    hope same response in future also:)
     
    rohitbhisey, Jan 21, 2008 IP
  7. webexpert

    webexpert Banned

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #27
    sure - anytime ;)
     
    webexpert, Jan 21, 2008 IP
  8. vristlefrenk

    vristlefrenk Banned

    Messages:
    90
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #28
    hm.... PHP vs HTML? thats cant work. PHP is a preprocessor of HTML, without HTML PHP can't really work. PHP works with HTML.

    PHP vs ASP, PHP vs JPS yes
    PHP vs HTML... no

    You can't make a login system with just HTML
    You can't connect to a MySQL database with just HTML
    You can't do hardly anything interactive or server side with just HTML

    there is no competition here as they dont do the same thing.
     
    vristlefrenk, Jan 23, 2008 IP
  9. webexpert

    webexpert Banned

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #29
    This is just Rohit you missed to update your post (Topic) title but you updated the message... :)

     
    webexpert, Jan 23, 2008 IP
  10. Sporsho

    Sporsho Peon

    Messages:
    153
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #30
    HTML does not give you the opportunity of logical programming for the webpage. PHP will let you do that. You can write HTML code in the note pad and save it as *.htm to check it. But for php you need interpreter or server to check your code.:cool:
     
    Sporsho, Jan 23, 2008 IP
  11. NRG

    NRG Well-Known Member

    Messages:
    218
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    140
    #31
    use php for dynamic web sites and use .htaccess for url rewrite to show links in .html for seo :)
     
    NRG, Jan 23, 2008 IP
  12. jamesicus

    jamesicus Peon

    Messages:
    477
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #32
    I do not know what you mean by "logical programming". However, hand-coding HTML via text editors can produce elegant semantic Markup with no problem. Most good editors (I use HTML-Kit) provide for editing and checking a great variety of coding (including PHP). Similarly, Markup can be dynamically checked (WYSIWYG) in all installed user agents (including graphical Browsers) during page composition. I do this regularly. Here is one of my pages that uses PHP for pre-processing and then serves a content-negotiation page as "real" XHTML (with content MIME type application/xhtml+xml) to XML compliant graphical Browsers such as Firefox, Opera, Safari, et al and as XHTML served as HTML (content MIME type text/html) to MSIE Browsers.

    BTW, I associate (via .htaccess) the .htm file extension with HTML & XHTML pages served as content MIME type text/html and the .html file extension for XHTML pages served as content MIME type application/xhtml+xml.

    James
     
    jamesicus, Jan 23, 2008 IP
  13. tylerdjefferson

    tylerdjefferson Peon

    Messages:
    213
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #33
    PHP = awesome site
    HTML = lame sauce.

    I would recommend PHP. It looks nicer and its easier to manage!
     
    tylerdjefferson, Jan 24, 2008 IP
  14. rohitbhisey

    rohitbhisey Banned

    Messages:
    706
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #34
    Exactly Mr webexpert,
    This answer is lil bit different and informative too..
    So Thanks for prompting me;)


    Regards
    Rohit
     
    rohitbhisey, Jan 27, 2008 IP
  15. vsplinter

    vsplinter Peon

    Messages:
    103
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #35
    I would like to reply to the original questions, i.e PHP and HTML files.
    HTML files are sent directly to the client's browser as it is from the server.
    Wherever a files is of type PHP, it will pass through a processor first, then the result will go to the client's browser.
     
    vsplinter, Jan 28, 2008 IP
  16. reuters

    reuters Banned

    Messages:
    358
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #36
    wow.. found an interesting thread. learnt a lot frm it. thanks to those who hv posted nice information and thank the thread creator off course.
     
    reuters, Feb 4, 2008 IP
  17. Bohol

    Bohol Peon

    Messages:
    2,680
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #37
    I am learning the ropes of HTML5. It's exciting to see new things in this development.
     
    Bohol, Feb 23, 2008 IP
  18. !-PhotoFan

    !-PhotoFan Peon

    Messages:
    1
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #38
    Strange discussion, the difference is absolutely clear
     
    !-PhotoFan, Jun 26, 2008 IP
    lycos and dynashox like this.
  19. samehzone

    samehzone Guest

    Best Answers:
    0
    #39
    html is the skin
    php is the brain and the heart
     
    samehzone, Jun 29, 2008 IP
  20. m.gina.seo

    m.gina.seo Banned

    Messages:
    90
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #40
    Simply, you can say that, html is used for designing static sites while php is used for making dynamic sites.
     
    m.gina.seo, Jul 3, 2008 IP