1156 Chapel Street, POB 208339
New Haven, Connecticut, 06520-8339
(203) 432-2600
LAB 1 (JAN 22)
Concepts:
- The command line
- Variables
- Command-line arguments
How to run:
ssh networks@ernie.art.yale.edu
cd Sites/labs/01-jan22
php name-age.php Dan 32
How to edit:
Use the Finder to connect to ernie.art.yale.edu as the networks user; find the .php files within the Sites folder of the networks volume.
Edit access: Sysop
LAB 2 (JAN 29)
Concepts:
- Conditionals
- Iteration
- Functions
- Assignment 1 sample
How to run:
ssh networks@ernie.art.yale.edu
cd Sites/labs/02-jan29
php control-structures.php 65
php assignment1.php a 9
How to edit:
Use the Finder to connect to ernie.art.yale.edu as the networks user; find the .php files within the Sites folder of the networks volume.
Edit access: Sysop
SOURCE CODE
Edit access: Sysop
LAB 3 (FEB 5)
Concepts:
- Variable scope
- Arrays
- Generating HTML instead of plain text
How to run:
Two programs on the command line:
ssh networks@ernie.art.yale.edu
cd Sites/labs/03-feb05
php variable-scope.php 32
php arrays.php
Two programs in the browser:
http://ernie.art.yale.edu/~networks/labs/03-feb05/hello.html
http://ernie.art.yale.edu/~networks/labs/03-feb05/hello.php
How to edit:
Use the Finder to connect to ernie.art.yale.edu as the networks user; find the .php and .html files within the Sites folder of the networks volume.
Edit access: Sysop
SOURCE CODE
Edit access: Sysop
LAB 4 (FEB 12)
Concepts:
- Arrays
- Using an HTML form to pass user input to your PHP script
How to run:
One program on the command line:
ssh networks@ernie.art.yale.edu
cd Sites/labs/04-feb12
php array-review.php
Three programs in the browser:
http://ernie.art.yale.edu/~networks/labs/04-feb12/input.php
http://ernie.art.yale.edu/~networks/labs/04-feb12/output.php?oneNumber=5&anotherNumber=7
http://ernie.art.yale.edu/~networks/labs/04-feb12/input-output.php
How to edit:
Use the Finder to connect to ernie.art.yale.edu as the networks user; find the .php files within the Sites folder of the networks volume.
Edit access: Sysop
SOURCE CODE
Edit access: Sysop
LAB 5 (FEB 19)
Concepts:
- More arrays
- More HTML
- Figuring out how many elements are in an array
- Splitting a string into an array using a separator
- Substring function
- String replace function
- Classes and objects
- XML
- Yahoo weather
- Assignment 2 sample
How to run:
http://ernie.art.yale.edu/~networks/labs/05-feb19/arrays-again.php?sentence=The quick brown fox
http://ernie.art.yale.edu/~networks/labs/05-feb19/objects.php?wheelsVehicle1=2&wheelsVehicle2=3
http://ernie.art.yale.edu/~networks/labs/05-feb19/weather.php?zipcode=06511
How to edit:
Use the Finder to connect to ernie.art.yale.edu as the networks user; find the .php files within the Sites folder of the networks volume.
Edit access: Sysop
SOURCE CODE
Edit access: Sysop