Book 5 Chapter 6
PHP Files
- rollDice1.php
source
Standard die-rolling program
- rollDice2.php
source
Rolling the dice with functions
- helloScope.php
source
Understanding variable scope
This code has a deliberate error. It may produce
a warning message in your browser. This is
intended. Please see the book for details
- helloFunction.php
source
Returning date from a function
- rollDice3.php
source
Using a session variable to keep persistant data
Extremely strict servers may cause a warning the first
time this program runs. It is not a bug, but a warning
that the variables were not set explicitly.
Image Files