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. edealsbiz

    edealsbiz Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #21
    Are you asking this queston regarding the new Search engine guidlines penalizing slow loading pages?

    If yes, then I would say HTML is the best and always will be. :cool:

    PHP pages need to be "processed" by the PHP engine on the webserver and it takes time to do the job.

    Just google "WordPress optimization" (or something like that) and you'll see that this is a real concern among WordPress blog owners and I'm one of them! :confused:
     
    edealsbiz, Feb 3, 2011 IP
  2. Ardra

    Ardra Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #22
    thanks for suggestion
     
    Ardra, Feb 3, 2011 IP
  3. superclothingshop

    superclothingshop Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #23
    it is just like APPLE and ORANGE both are round in shape but in taste different...
     
    superclothingshop, Feb 18, 2011 IP
  4. jkl6

    jkl6 Peon

    Messages:
    70
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #24
    PHP can create HTML? How can you compare them?
     
    jkl6, Feb 18, 2011 IP
  5. Meenakshi

    Meenakshi Peon

    Messages:
    131
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #25
    Hi,

    PHP is stands for Hypertext Preprocessor and it is a program language,where as HTML is stand for Hypertext Markup Language
    and we can use both of them together to create a website.
     
    Meenakshi, Feb 19, 2011 IP
  6. ch1n3s3b0y

    ch1n3s3b0y Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #26
    I don't really think the two even compare.
     
    ch1n3s3b0y, Feb 19, 2011 IP
  7. jezzz

    jezzz Notable Member

    Messages:
    4,884
    Likes Received:
    190
    Best Answers:
    0
    Trophy Points:
    200
    #27
    Very Well said! but in modern days programmers combine the technologies of both to render smart piece of codes based on combination of both

     
    jezzz, Feb 19, 2011 IP
  8. Meenakshi

    Meenakshi Peon

    Messages:
    131
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #28
    PHP is stand for Hypertext Preprocessor where as php is a programming language and HTML is stand for Hyper Text Markup Language and it is just a simple markup language but we can use both of them together to creat a dynamic website.
     
    Meenakshi, Feb 21, 2011 IP
  9. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #29
    the are completely different but meant to work together
     
    srisen2, Feb 21, 2011 IP
  10. prptl709

    prptl709 Guest

    Messages:
    83
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #30
    I think Php is better than Html because it has some additional functionalities
     
    prptl709, Feb 21, 2011 IP
  11. clumbiecom

    clumbiecom Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #31
    html for interface and php script for code, you need both of php and html
     
    clumbiecom, Feb 27, 2011 IP
  12. Meenakshi

    Meenakshi Peon

    Messages:
    131
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #32
    PHP means Pre Processor Hypertext it is use for web design,HTML means Hyper Text Markup Language. It is used to create web pages with the help of text editior.
     
    Meenakshi, Mar 2, 2011 IP
  13. webcodez

    webcodez Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #33
    Neither HTML nor PHP is "best". As mentioned already they're totally different.

    If you're planning on making a website you'll atleast NEED to know HTML, as HTML is used for creating the layouts/texts/etc. ( the whole look of your website with it all its graphical & text contents ). If your website also needs a system (e.g. for user accounts creation, content manegement administration panels, etc. ) you will need to use PHP as well (generally speaking, however there of course are alternative programming languages also).
     
    webcodez, Mar 3, 2011 IP
  14. jadeslair

    jadeslair Peon

    Messages:
    265
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #34
    If you are doing a simple 10 page site then straight html should be fine but anything complex will probably require php.
     
    jadeslair, Mar 4, 2011 IP
  15. jNorth

    jNorth Peon

    Messages:
    202
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #35
    thats a true statement, except for the .net part. .net is proprietary, I would avoid
     
    jNorth, Mar 11, 2011 IP
  16. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #36
    .net is not the fastest solution but works just fine if you dont mind spending countless extra hours debugging your scripts and pages
     
    srisen2, Mar 17, 2011 IP
  17. Sayeed10

    Sayeed10 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #37
    Both are important to make a site. PHP is better.
     
    Sayeed10, Mar 18, 2011 IP
  18. Reputation

    Reputation Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #38
    As many said, HTML which proved a XML-Based structure for websites,it is completely different from PHP, whilst PHP is a quite powerful programming language that can be used for practically any application (you can actually use PHP as you would use Java, and C++) Facebook developed a framework called HipHop that converts PHP to highly Optimized C++ if that has any interest to you.
     
    Reputation, Mar 18, 2011 IP
  19. Amitoops

    Amitoops Well-Known Member

    Messages:
    1,388
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    148
    #39
    Well both are good at there position .They both having different works and both plays very important role in the world of programming.PHP is the programming language and HTML is the mark up language.So from my side there is no comments on both because both language is also very important for my life because i am a cse student.
     
    Amitoops, Mar 25, 2011 IP
  20. arvindgvt1

    arvindgvt1 Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #40
    Php vs html

    PHP and HTML are compliments not competing languages. PHP is used to create dynamic HTML which will be sent to the viewer. You would not be able to create a shopping cart in just HTML. PHP is obviously going to be slower than HTML since it is computing dynamic code, wheras HTML is just reading the code from the file and sending it out. The difference wont be noticable unless you have the php engine doing something rediculous.

    The extensions don't make code php or html. HTML code in a .php file is still HTML. by renaming a file to .php, it is simply telling the apache server to look out for php tags (<?php ?>) and if it finds any to engage the php engine.

    They are different tools, each used for different jobs.

    HTML stands for Hypertext Markup Language, and its basically a tool for displaying text in different ways using tags.

    You could create a webpage in HTML, and that would be it. In order to update figures or information on your page, you would have to manually edit the information within the file and re-upload it. All you have is that webpage with nothing behind it.

    PHP is what makes the content on your page dynamic. Often used hand in hand with MySQL (or any of the other popular semi-popular databases), PHP uses variables and other functions to do tasks that HTML cannot do.

    PHP is handles the data, which can be obtained from people and stored, and HTML is used to format the data. Often called the frontend (HTML) which is what people see, and the backend (the PHP) which is what does the work.

    If you wanted to create a shopping cart, you would need both languages. PHP to handle the data, mathematical calculations ... or to incorporate API from another source, to process information according to what you want to do with it, and to communicate with a database.

    Then, you would use the HTML to format the results of what the PHP produces. If you didn't have HTML, the PHP output would be very basic, unformatted, and look like a big jumble of information. HTML allows the information to be put into tables, bolded, italisized ... allows linebreaks, headers, subheaders.
     
    arvindgvt1, Mar 25, 2011 IP