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, ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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? |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |
Our Partners |