Go Back   WebMasters.org Forums > Website Design & Development > PHP Forum

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-28-2011, 06:20 AM
Junior Member
 
Join Date: Sep 2011
Posts: 15
Default Deciding between PHP and HTML..

Hi there's
what the direct benefits to offer PHP over HTML? I just wanted to know. Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-06-2011, 06:23 AM
Junior Member
 
Join Date: Oct 2011
Location: In fr0nt 0f C0mputer
Posts: 29
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-07-2011, 07:47 AM
Member
 
Join Date: Feb 2011
Posts: 37
Default

Quote:
Originally Posted by Michael 55 View Post
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.
Good post !!! thanks for nice sharing in here.......keep it up........
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-11-2011, 03:56 PM
Junior Member
 
Join Date: Oct 2011
Posts: 3
Default

The PHP code is parsed by a web server when the page opens, and the resulting output is written as an HTML Web page. When a user accesses a PHP page, the browser will be sent in the HTML that the web server has changed the PHP code at the bottom.
__________________
line painter machine
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-14-2011, 02:24 PM
Junior Member
 
Join Date: Oct 2011
Posts: 5
Default

Php code parsed the Web server when the page has been accessed, and its output has been written within the HTML web page. When the user PHP page, your Web browser available only to send the HTML, the Web server as it has developed the PHP code in the background.
__________________
code reduction
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-01-2011, 05:11 PM
Junior Member
 
Join Date: Nov 2011
Posts: 5
Default

HTML is a language used to describe a browser how to display text and other objects in a browser. PHP is a scripting language, and can be used to create web pages written in HTML. PHP runs on the server the system that the page is, and is a programming language.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-12-2011, 01:46 AM
Junior Member
 
Join Date: Nov 2011
Location: Madison, GA
Posts: 4
Default

you can use php, but you still have to use html to actually show anything in a formatted view.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-26-2011, 05:58 AM
Junior Member
 
Join Date: Nov 2011
Posts: 25
Default

HTML is easy coding. The main difference between php and html is that html is very static and php language is dynamic. PHP is a server-scripting language where we can retrieve values and use in the front-end.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-30-2011, 08:32 AM
Member
 
Join Date: Nov 2011
Posts: 45
Default

Hello,


Nice posting!!!!!!!

Thank you so much for sharing!!!!!!!!!!Q







Saree
| Sari | Salwar Kameez | Sherwani | Indiska Kläder | Kurta Pyjamas
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-19-2012, 09:23 AM
Member
 
Join Date: Nov 2011
Location: North America 10820 Sanden Drive Dallas, Texas 75238
Posts: 60
Default

As such PHP is easy to learn and understand but still comparing both of these languages will be useless because both are used together for web development.
Digg this Post!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

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



All times are GMT. The time now is 09:40 AM.



Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
vB Ad Management by =RedTyger=