Академический Документы
Профессиональный Документы
Культура Документы
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/.
System
System
C uses curly
braces { } for
code blocks.
Scripting/
Interpreted
http://en.wikipedia.org/wiki/History_of_programming_languages
Show Me The Money...
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?
<script type="text/javascript">
document.write("Hello World. Today is " + Date() );
</script>
JavaScript: Brendan Eich