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 'Programming' started by Ardra, Jan 21, 2011.

  1. #1
    Which is best PHP or HTML?
     
    Ardra, Jan 21, 2011 IP
  2. huangsen365

    huangsen365 Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi Ardra,

    PHP is a program language, HTML is mark language.
    PHP can do the thing as HTML can do.
    But html can't do the thing as PHP can do.
     
    huangsen365, Jan 21, 2011 IP
  3. Tutorial Feed

    Tutorial Feed Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    These are totally different languages and cannot really be compared. The two are used to compliment each other, not to replace.

    HTML is a client side language that shapes what the user sees. Used for structuring your data on the page.

    PHP is a server side language and as such is what is used to generate that data.
     
    Tutorial Feed, Jan 21, 2011 IP
  4. strike1

    strike1 Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    html is a simple language with lots of limitations. php is a much more complex programing language. if you are familiar with html keep going with that as html can generally be used in combination with php, and it will help you some. php also is used in combination with a database such as mysql which can be edited with online software such as phpmyadmin...
     
    strike1, Jan 24, 2011 IP
  5. iliveforyou

    iliveforyou Active Member

    Messages:
    207
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    you will need both PHP and HTML to build an website
     
    iliveforyou, Jan 24, 2011 IP
  6. RadioBounce

    RadioBounce Banned

    Messages:
    4,171
    Likes Received:
    16
    Best Answers:
    1
    Trophy Points:
    0
    #6
    Apples and oranges bro.
     
    RadioBounce, Jan 24, 2011 IP
  7. ukescuba

    ukescuba Peon

    Messages:
    91
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    to answer your question as specified - PHP! :)

    but like whats been mentioned here your comparing apples to oranges... if your thinking about what to learn - then i would suggest get a basic understanding of html and css - then move on to php and mysql

    this is a great tutorial resource... http://www.tizag.com/
     
    ukescuba, Jan 25, 2011 IP
  8. Falrish

    Falrish Greenhorn

    Messages:
    70
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #8
    PHP is a stronger language. It is a server side language that allows you to make much more customizable sites. However, that being said, a website cannot be displayed without HTML ;)
     
    Falrish, Jan 25, 2011 IP
  9. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    html is always need no matter what you use to display your web based content if you use php or c# you still use html to display the data the user sees.

    Php is a language that will allow you to create and use variables with login and easily connect to a database to produce dynamic data that is then feed via an echo statement in html to the browser

    php is used to create dynamic html so you will use php or c# or some language to assist with the logic and database but these languages create data that should be out putted in html

    for instance

    php:

    $dollar = "dancing";
    $late = "8's";
    echo "<font size='3' color='red'>$doll $late</font>";

    you see html is used in the php to hold the variable which create the following html output

    <font size="3" color="red">dancing 8's</font>

    this is then interpreted into by the browser to read "dancing 8's" in red with a size of 3pt.
     
    srisen2, Jan 27, 2011 IP
  10. sitearena

    sitearena Peon

    Messages:
    229
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Php is server side language which helps to integrate Database.HTML is rather static and simple webpages.
     
    sitearena, Jan 27, 2011 IP
  11. prkishnani

    prkishnani Peon

    Messages:
    164
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Hello......

    As a beginner to learn web designing i would recommend you HTML and If you are aware with web designing and have programming knowledge then go to PHP..............
     
    prkishnani, Jan 27, 2011 IP
  12. derrickschwan

    derrickschwan Peon

    Messages:
    458
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    .net and PHP is good.
     
    derrickschwan, Jan 28, 2011 IP
  13. dollarfish

    dollarfish Member

    Messages:
    89
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    26
    #13
    Go for both at the same time !
     
    dollarfish, Jan 28, 2011 IP
  14. sysbee

    sysbee Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    both are good
     
    sysbee, Jan 30, 2011 IP
  15. jhine

    jhine Active Member

    Messages:
    25
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    53
    #15
    You might want to check your PHP there. Anyway, none of these posts are remotely educational.

    HTML is a markup language, used to generate content by your browser. The client requests a page from the server and the server sends the HTML to the browser - in short.

    PHP is (not a programming language) a server-side scripting language to provide functionality for your website. HTML and PHP can be used together in a php file to create dynamic websites.

    Hope this helps!
     
    jhine, Jan 31, 2011 IP
  16. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #16
    Whether a language is a scripting language or not does not determine whether it's a programming language. That's old school thinking. PHP is a programming language.
     
    drhowarddrfine, Jan 31, 2011 IP
  17. jhine

    jhine Active Member

    Messages:
    25
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    53
    #17
    But when you've been using PHP as long as I have, "PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML." - PHP.net comes natural.
     
    jhine, Jan 31, 2011 IP
  18. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #18
    $doll should be $dollar in the echo statement

    Otherwise that is how php is used with html
     
    srisen2, Jan 31, 2011 IP
  19. DIGITALCHAMELEON

    DIGITALCHAMELEON Peon

    Messages:
    465
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #19
    I am using PHP.
     
    DIGITALCHAMELEON, Jan 31, 2011 IP
  20. bhupi_arora

    bhupi_arora Peon

    Messages:
    249
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #20
    PHP is a program language, HTML is mark language. I think PHP best...
     
    bhupi_arora, Jan 31, 2011 IP