Embedded Scripts (Scriptlets) Scripting statements are enclosed in script tags. – PhP – ASP, JSP ASP uses Visual Basic for Scripting,
Dynamic Page Page is generated by ASP engine which executes scriptlet statements as they are encountered.
PhP Examples Hello World in PHP <? // Hello world in PHP print("Hello World"); ?>
How do we tell server that we have server side scripting? Name the file.php,.asp,.jsp,.cfm Note, the web server has to be configured to invoke the correct script interpreter. Not all web servers support all scripting languages. – Microsoft supports ASP, can add PhP – Apache supports Php – Tomcat (a java based server) supports JSP.
Who does what where? As a test of your understanding, how could you answer the following question. Assuming the user and the web server are in the same time zone, and have synchronized time, how long (milliseconds) does it take to download a simple web page? Could you create a web page that answers this question using PHP? How hard is it? What do you need to know?
Team question In 5 minutes, sketch an answer to the previous question.