Results 1 to 4 of 4

Thread: what is the difference between PHP and HTML

  1. #1
    Join Date
    Feb 2009
    Posts
    35

    what is the difference between PHP and HTML

    I have many times written a web pages containing the HTML as well as PHP but never try understanding the difference between the two, actually it was very tiny but the important thing when we make any programs in one of the technology, but now here I will ask you about the difference between the PHP and HTML.

    Hope I will get the answer..

    Thanks

  2. #2
    Join Date
    Dec 2008
    Posts
    161

    Re: what is the difference between PHP and HTML

    PHP files are just like HTML files, but they can include both HTML and PHP code. PHP allows you to create non-static pages and interact with databases. PHP is a scripting language that is embedded in an HTML page. The PHP code is parsed (or executed) by the Web server when the page is accessed and the resulting output is written as HTML within the Web page.

  3. #3
    Join Date
    Jan 2009
    Posts
    140

    Re: what is the difference between PHP and HTML

    Well HTML is really really basic thing and you must know it if you want to learn something more. Again PHP is the server side scripting and HTML is the formatted output for the end user. and PHP is a powerful server-side scripting language for creating dynamic and interactive websites. and if are new and wanted to learn PHP then you must learn HTML first and then PHP. The only difference is that the php server program won't read a page unless it has the .php extension (as well as .php3, etc.). The disadvantage, however, is that a browser won't be able to view it offline (though running php, i recommend Xampp/Lampp, will solve that).

  4. #4
    Join Date
    Jan 2009
    Posts
    99

    Re: what is the difference between PHP and HTML

    Trying to program in PHP before knowing HTML is kind of like trying to read a book and not knowing the alphabet. The .php extension is important, since it tells the Web server that the page may include PHP code. html is a very simple language with lots of limitations. php is a much more complex and sophisticated programing language. Therefore, it must be run through the server's PHP engine before being sent to a client's Web browser. Basically, HTML displays content on a page, PHP generates complex content.

Similar Threads

  1. What is the difference between HTML 5 and other older version?
    By baggio in forum Technology & Internet
    Replies: 7
    Last Post: 14-07-2012, 01:56 PM
  2. What is difference between CSS and HTML?
    By Ayuka in forum Software Development
    Replies: 3
    Last Post: 08-01-2011, 02:51 PM
  3. html help
    By saffu khan in forum Software Development
    Replies: 3
    Last Post: 03-05-2010, 01:01 PM
  4. Replies: 3
    Last Post: 22-09-2009, 01:12 PM
  5. How do I get the HTML code to display as HTML code?
    By NAYASA in forum Software Development
    Replies: 3
    Last Post: 26-12-2008, 01:35 PM

Tags for this Thread

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
  •  
Page generated in 1,713,566,163.14625 seconds with 16 queries