Introduction to Dynamic Web
Content
Chapter 1
Dr. Charles Severance
Fix the request response to be
simpler
Unless otherwise noted, the content of this course material is licensed under a Creative
Commons Attribution 3.0 License.
http://creativecommons.org/licenses/by/3.0/.
Copyright 2011- Charles Severance
Early History of Important*
Programming Languages
Machine Language (1940's)
Assembly Language (1940's)
FORTRAN - Mathematics expressions (1955)
C - High-productivity Assembly Language (1969)
* As defined by Dr. Chuck
Science Calculations
System
System
C uses curly
braces { } for
code blocks.
Scripting/
Interpreted
http://en.wikipedia.org/wiki/History_of_programming_languages
Show Me The Money...
C, C++, C#, ObjectiveC
Java
PHP
...
http://langpop.com/ http://www.flickr.com/photos/tracy_olson/61056391/
The History of PHP
Rasmus Lerdorf
Not a trained computer
scientist
Consultant building dynamic
web sites - got tired of doing
the same thing over and over
in C
Reusable bits + HTML
Templates
http://www.vimeo.com/6215179
Request / Response Cycle
You enter http://server.com into your browsers address bar.
Your browser looks up the IP address for server.com.
Your browser issues a request for the home page at server.com.
The request crosses the Internet and arrives at the server.com web
server.
The web server, having received the request looks for the web
page on its hard disk.
The web page is retrieved by the server and returned to the
browser.
Your browser displays the web page.
Internet
HTTP Request
JavaScript GET PHP MySql
HTML Response
AJAX CSS POST Templates MVC
Cookies
Our Technologies
PHP
PHP is the most widely used scripting language for web
programming. PHP extends HTML pages by adding
server-executed code segments to HTML pages. The
output of the execution of the PHP code is merged into
the HTML page.
<?php
echo "Hello World. Today is ".date("l").". ";
?>How are you?
Hello World. Today is Wednesday. How are
you?
MySQL
MySQL is one of the most popular free and open source
database engines in the market place. MySQL powers
Facebook, Yahoo!, WordPress, Drupal, Joomla, and
millions of other dynamic web sites.
INSERT INTO users VALUES('Smith', 'John', '[email protected]');
SELECT surname,firstname FROM users WHERE email='[email protected]';
JavaScript
JavaScript is a C-like programming language that can be
included in an HTML web page. JavaScript allows the
builder of a web page to embed dynamic elements within
a web page. JavaScript programs run in the browser (i.e.
the Client)
<script type="text/javascript">
document.write("Hello World. Today is " + Date() );
</script>
JavaScript: Brendan Eich
Invented JavaScript in May
1995 in ten days
Apache Web Server
Originally Developed at
National Center for
Supercomputing Applications
in 1994
Open Source
First project / product of the
Apache Foundation
Brian Behlendorf founded
Apache
http://www.vimeo.com/3800796
Summary
We laid out the general structure for the course and
introduced the technologies that will be used for the
course.