Presentation is loading. Please wait.

Presentation is loading. Please wait.

SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.

Similar presentations


Presentation on theme: "SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server."— Presentation transcript:

1

2 SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server Pages Client Browser 1 3 2

3  Two places you can change › Browser: JavaScript › Server: php  General rule: › do it in the browser if you can  Consider the difference in the date function… Server Web Server Pages Client Browser 1 3 2

4  Retrieve the web page  Reads each line › If NOT php, sends it on › If php,  Performs the action  Sends it on Server Web Server Pages 3 2

5  If I look in komodo edit…  If I look through view page source… Server Web Server Pages Client Browser 1 3 2

6  Files must be.php rather than.html › Servers will find and use index.php as the default if there is no index.html  PHP command format › › Commands always end with ;  Command of interest is › include(“file name”)

7  Single line › // comment  Multiple line › /* line › continues */  For includes, optional

8  You MAY, you NEED NOT  If you are interested, › Decide what function it brings › Command specifically to look at  echo to create text for HTML › May want to start with  date


Download ppt "SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server."

Similar presentations


Ads by Google