Difference between php and html

Discussion in 'PHP' started by dairyman, Jan 21, 2007.

  1. #1
    Does any one know the difference between php and html because I have developed a site in php. Which is more advantageous and superior?
     
    dairyman, Jan 21, 2007 IP
  2. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #2
    PHP is the server side scripting and HTML is the formatted output for the end user. They go hand and hand.
     
    noppid, Jan 21, 2007 IP
  3. Icheb

    Icheb Peon

    Messages:
    1,092
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #3
    CSS is far superior to PHP, HTML, JS and FBI. People who code in PHP are just losers. CSS is the future!
     
    Icheb, Jan 21, 2007 IP
  4. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #4
    Wow new things to learn. Please tell me about how to execute a SQL querry with css.
    I am a loser because I use PHP to do such things.;)
     
    YIAM, Jan 21, 2007 IP
  5. maiahost

    maiahost Guest

    Messages:
    664
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You forgot to mention KGB, Interpol, NSA, CIA ... MI7 .. NATO etc ...
    A friendly advice - stop smoking it. :)

    As for php and html, it's like comparing a statue to a robot. When you need static content you use HTML, when you need server side scripting use PHP :)
     
    maiahost, Jan 21, 2007 IP
  6. Icheb

    Icheb Peon

    Messages:
    1,092
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #6
    And you people should pull the stick out of your asses and realize that I made a joke. The "FBI" part should have been a clear indicator for that, wouldn't you say?
     
    Icheb, Jan 21, 2007 IP
  7. maiahost

    maiahost Guest

    Messages:
    664
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I saw the joke that's why I returned the gesture :) might have not been the best way though ... no hard feelings :p
     
    maiahost, Jan 21, 2007 IP
  8. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #8
    We must all be coders at heart.

    Our jokes are so lame we wouldn't survive saying "68656C6C6F206C616469657320616E64206765726D73. . " at the Apollo. :D

    But, maybe dairyman was setting us all up anyway.
     
    clancey, Jan 21, 2007 IP
  9. projectshifter

    projectshifter Peon

    Messages:
    394
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #9
    PHP is Pre-Hyptertext Processor, meaning that the final output of PHP is HTML. Without HTML you don't see anything on a webpage. PHP just helps you create dynamic HTML pages.
     
    projectshifter, Jan 21, 2007 IP
  10. joshuayip

    joshuayip Member

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #10
    Ta da... google still the best

    http://www.sharpened.net/helpcenter/answer.php?75
     
    joshuayip, Jan 21, 2007 IP
  11. gsoftinfo

    gsoftinfo Active Member

    Messages:
    124
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #11
    generally php ue for developing dynamic or database driven site and html is used in developing static contents....
     
    gsoftinfo, Jan 22, 2007 IP
  12. Codythebest

    Codythebest Notable Member

    Messages:
    5,764
    Likes Received:
    253
    Best Answers:
    0
    Trophy Points:
    275
    #12
    One letter. HTML is 4 and PHP is 3 :D
     
    Codythebest, Jan 22, 2007 IP
  13. audax

    audax Peon

    Messages:
    83
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Figure a website as a body.
    The HTML would be the skin and the PHP would be the skeleton.
    You use HTML when you use PHP.
     
    audax, Jan 22, 2007 IP
  14. lucab

    lucab Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    HTML is the skeleton. The skin and muscle are CSS. The nervous system, heart and brain are PHP. I think this is a significantly better analogy.
     
    lucab, Jan 22, 2007 IP
  15. amnezia

    amnezia Peon

    Messages:
    990
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #15
    americans don't do sarcasm remember ;)

    i though it was funny
     
    amnezia, Jan 23, 2007 IP
  16. rays

    rays Active Member

    Messages:
    563
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #16
    same difference present between while and black color ... though both are formed using RED GREEN BLUE (i.e. Web development scripting language)

    sorry if i am being too funny.. but this thought came in my mind first.

    Please check ww.w3schools.com under this section you will get lot of information about web and web development
     
    rays, Jan 24, 2007 IP
  17. seolion

    seolion Active Member

    Messages:
    1,495
    Likes Received:
    97
    Best Answers:
    0
    Trophy Points:
    90
    #17
    Is CSS superior than .Net also :confused:

    :D :D
     
    seolion, Jan 24, 2007 IP
  18. jpcesar

    jpcesar Peon

    Messages:
    243
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #18
    guys, lets try to understand things, shall we?

    All webpages are rendered in HTML. This is the language all the browsers interpret.

    However, to make a dynamic site, you use a programming language so you can fetch data from a database and display it dynamically but always using html. Php, asp.net, asp, perl, jsp, all of these are used as HTML generators, and they run in a server side, before any code goes to client. Javascript is a programming language as well but that runs on the client side.

    CSS is a language to style your pages. This permits separation between content and presentation. However you code HTML to use CSS. You specify in HTML which CSS styles must be used.

    So, CSS is not superior than HTML, they are different things. What you wanted to say is that styling with CSS is more superior than styling with HTML (embebbed styling with html tags). With CSS alone you don't go anywhere, you need to use HTML to call your CSS styles.

    In the bottom end, all is html. PHP and ASP are just generators, and CSS are files that encapsulate styles, so they don't be mixed with html tags.

    I Hope I've cleared some confusions.
     
    jpcesar, Jan 24, 2007 IP
  19. baddot

    baddot Active Member

    Messages:
    309
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #19
    php is good for implementing of database like mysql etc...and can do more complex functions as other languages like javascript etc... is more difficult than php
     
    baddot, Jan 24, 2007 IP
  20. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #20
    Biggest load I ever heard, css is for styling webpages and php is for populating pages with dynamic content, you clearly have no idea.

    Also, it's gonna be near on impossible to "develop" a site in a language you know nothing about.

    Also, php is a recursive ancronym : Hypertext Preprocessor
     
    krakjoe, Jan 24, 2007 IP