What is the difference between a PHP and HTML Web page?

shophia

New member
Joined
Mar 25, 2013
Messages
45
Points
0
PHP files are only 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 permitted & the resulting output is written as HTML within the web page. When a user entrances a PHP page, his web browser just acquires sent the HTML code, since the Web server has processed the PHP code in the background. Most PHP pages are procedure so fast that it does not clearly slow down the loading of the page.

The .php extension is very significant, because it tells the web server that the page can include PHP code. Thus, it should be run during the server's PHP engine earlier than being sent to a client's web browser. This permits dynamic content to be created each and every 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 present date with time, data from form fields submitted by a user, or details from a database. Still, formerly the page reaches the user's browser, everything is formatted as HTML.
 

md_lee

New member
Joined
Apr 24, 2013
Messages
10
Points
0
Correct. The php extension on a webpage enables a web server to parse the code as PHP and hence the PHP fragments are executed properly.
 
Older threads
Replies
0
Views
2,800
Replies
0
Views
3,572
Replies
9
Views
4,487
Latest threads
Replies
0
Views
589
Replies
2
Views
788
Replies
1
Views
309
Recommended threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top