IT Community - Software Programming, Web Development and Technical Support

What is difference between a PHP and HTML?

This is a discussion on What is difference between a PHP and HTML? within the PHP Programming forums, part of the Web Development category; I am regularly using the internet, on either work or research. I noticed that some sites don't use HTML, ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 12-25-2007, 10:04 PM
chocoguy chocoguy is offline
D-Web Programmer
 
Join Date: Dec 2007
Posts: 97
chocoguy is on a distinguished road
Default What is difference between a PHP and HTML?

I am regularly using the internet, on either work or research. I noticed that some sites don't use HTML, instead they are using PHP. Now, this begins to trouble me to the point of asking this question. Can anyone tell about this?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 12-26-2007, 01:27 AM
shiva shiva is offline
Super Moderator
 
Join Date: Feb 2007
Location: Chennai
Posts: 53
shiva is on a distinguished road
Send a message via AIM to shiva Send a message via MSN to shiva
Thumbs up Re: What is difference between a PHP and HTML?

Hi,

Not a big deal really!!!

HTML is a markup language whereas PHP is a hypertext processing language...

PHP may also contain both php code and HTML, whereas if the browser URL is specified with a .php extension at the end,then the browser understands that php code may be present in the page, and sends the page for the server to process it and the resulting output is presented as HTML to the browser...


Hope this Helps!!!

Thanks
Shiva...
__________________
The real voyage of discovery consists not in seeking new landscapes, but in having new eyes
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 12-26-2007, 04:23 AM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 328
KiruthikaSambandam is on a distinguished road
Default Re: What is difference between a PHP and HTML?

Hi,
PHP files are just like HTML files, but they can include both HTML and PHP code. 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. When a user accesses a PHP page, his Web browser only gets sent the HTML code, since the Web server has processed the PHP code in the background. Most PHP pages are processed so quickly that it does not noticeably slow down the loading of the Web page.

The .php extension is important, since it tells the Web server that the page may include PHP code. Therefore, it must be run through the server's PHP engine before being sent to a client's Web browser. This allows dynamic content to be generated each time the Web page is loaded, based on the variables included in the PHP code. For example, PHP pages may load objects such as the current date and time, data from form fields submitted by a user, or information from a database. Still, once the page reaches the user's Web browser, everything is formatted as HTML.

Thanx
Kirthika
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML vs XHTML: Nesting, The Difference jesichamika HTML, CSS and Javascript Coding Techniques 1 09-16-2009 08:29 PM
What is difference between XHTML,HTML,DHTML? pradip030384 XML and SOAP 4 01-02-2009 07:56 PM
PHP and HTML Jeyaseelansarc PHP Programming 43 04-09-2008 12:26 AM
Difference of htm and html thangaraj83 Web Design Help 4 09-21-2007 01:12 PM
HTML or CSS capture Web Design Help 2 03-15-2007 06:21 PM


All times are GMT -7. The time now is 03:06 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0