CSC 195 2014S, Class 11: PHP (2)
================================

_Overview_

* Preliminaries.
    * Admin.
    * Homework.
    * Questions.
* The client-server model, revisited.
* Detour: CGI scripts.
* Why write server-side scripts, anyway?
* Dangers of server-side scripts.
* Storing and retrieving data, a simple approach.

Preliminaries
-------------

### Admin

* We'll look at some of the things you built.
* Remember: Pioneer Weekend is this weekend!
* Remember: CS Pub Night tonight at 8 pm.
* Next homework: Find an online SQL Tutorial, do the tutorial, and enter
  a few key points you learned.

### Exploring your homework

* Wasn't that fun?

### Questions

The client-server model, revisited
----------------------------------

* Look: We have computation on the server and computation on the client.

Why write server-side scripts, anyway?
--------------------------------------

* More processing power on the server, sometimes you need that.
    * But you also need some stuff to happen on the client, or the server
      may be overwhelmed.
* If you are managing communication, there are some advantages to a 
  centralized model.
    * Easier for the NSA to watch communications.
    * People can't "cheat"
* Since Microsoft refuses to follow the ECMA standard, you can be more sure
  that something you build on the server will look the same in every browser.
* Sometimes you want to build a simple value from a large amount of data.
* Allows you to keep track of what's happened. 
    * Store more info on the user for the NSA to mine or for Google to sell.
    * But you can get that data in other ways, too.
* Some data access requires a password; you don't want to hand that out.

Detour: CGI scripts
-------------------

Dangers of server-side scripts
------------------------------

Storing and retrieving data, a simple approach
----------------------------------------------

