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

shophia

Member
Registered
Joined
Mar 25, 2013
Messages
23
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
Registered
Joined
Apr 24, 2013
Messages
3
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
3,809
Replies
10
Views
4,228
Replies
2
Views
2,456
Replies
1
Views
2,651
Newer Threads
Replies
8
Views
4,234
Replies
1
Views
2,549
Replies
2
Views
2,894
Replies
1
Views
3,252
Replies
9
Views
4,681
Latest Threads
Replies
1
Views
24
Replies
0
Views
179
Replies
1
Views
39
Replies
2
Views
81
Recommended Threads

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

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