SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru etidd's Avatar
    Join Date
    May 2011
    Location
    atlanta, ga
    Posts
    632
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Post How is PHP Different from HTML?

    What are some differences between HTML from PHP?

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,198
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    HTML is what you use to build cool looking websites, it handles all the CSS, JavaScript and SEO for your website where as PHP is a server side processing engine that allows you to build use template engines such as Smarty to control your website using template files and PHP files rather then HTML files.

    More or less

    HTML = Browser handles all parsing and output
    PHP = 3rd party server handles all the back end processes

  3. #3
    SitePoint Guru etidd's Avatar
    Join Date
    May 2011
    Location
    atlanta, ga
    Posts
    632
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your aMaZiNg Post!

  4. #4
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    PHP and HTML are not exclusive. You cannot have one or the other. To make a web page you need HTML. PHP is not a replacement for HTML. Understand this alright.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  5. #5
    SitePoint Zealot GOPalmer's Avatar
    Join Date
    Jan 2009
    Location
    Wiltshire, UK
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Real clear answers there guys

    HTML is the language understood by your web browser. It tells your web browser what the page content is, and, with the aid of CSS, how it should presented to a visitor. It is known as a mark-up language and quite literally just describes content.

    PHP provides more power over your HTML output. It's a server-side language, which simply means it's processed on the server, rather than a visitors computer. The ins and outs of a programming language are quite complicated, but simply put PHP provides a means of processing data and returning browser readable HTML. This data could be from config files, databases, user input, etc.

    Hope this makes things a bit clearer

    George


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •