Thread: PHP versus HTML
View Single Post
  #1 (permalink)  
Old 03-25-2007, 09:52 PM
ForumJoiner ForumJoiner is offline
Member
 
Join Date: Mar 2007
Posts: 60
iTrader: 0 / 0%
Thanks: 0
Thanked 0 Times in 0 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ForumJoiner is on a distinguished road
Default PHP versus HTML

Let us say you use a computer, called client, to access a web page, which is stored on another computer, called server. The client computer asks the server for a page, the servers serves the page to the client and the browser running on the client displays it to the user.


While some pages can be written in HTML only, the ones that require interaction with user need another language to do the processing. If the author of the web page wants the processing to take place on your computer (that is, on the client) then (s)he uses JavaScript. If the processing takes place on his/her computer (that is, on the server), then PHP is used.


For instance, when using a feedback form, the HTML page displays the form and read your name and the e-mail. A PHP file processes the data ( the name and the e-mail) and sends an e-mail to the e-mail address you supplied.


If you want to learn PHP, you can use the same computer to act as the client and as server. The client will be represented by a web browser (like Internet Explorer, Mozilla FireFox or Opera) and the server will be represented by a web server (like Apache, IIS and so on).


To learn how to install / configure / test Apache web server and PHP, please click here.
Reply With Quote