eg-259:examples:php1
Table of Contents
/eg-259
Introduction to PHP – Online Examples
Supporting: Contact Hours 19 to 23
Session Dates: Tuesday 20th March 2012 – Wednesday 28th March 2012
Prepared by: Dr Chris P. Jobling
Adapted from: Robert W. Sebasta, Programming the World-Wide Web, 3rd Edition, Addison Wesley, 2006.
You can try the PHP examples from the lectures by following the following links. All the scripts have been installed in my virtual directory /eg-259/examples/
on the web server eng-hope.swan.ac.uk. You'll find the source code in the lecture notes.
Examples from Contact Hour 19
- Example 1: A simple example to illustrate a PHP document < today.php, today.php @ localhost >
- Example 2: An example to illustrate loops and arithmetic < powers.php, powers.php @ localhost >
Examples from Contact Hour 20
- Example 3: An example to illustrate several of the sorting functions < sorting.php, sorting.php @ localhost>
- Example 4: The < word_table.php, word_table.php @ localhost> example illustrates the use of functions and regular expressions
Example from Contact Hour 22
- Example 5: An simple popcorn ordering application in PHP < popcorn3.html, popcorn3.html @ localhost>
Examples from Contact Hour 23
- Example 6: A Web Query from Perl CGI < carscgi.html, carscgi.html @ localhost> [for information on how this is done see the extra notes]
- Example 7: A Web Query from PHP < carsdata.html, carsdata.html @ localhost>
- Example 8: A Combined form and Web Query in PHP < access_cars2.php, access_cars2.php @ localhost>
eg-259/examples/php1.txt · Last modified: 2012/03/22 09:27 by eechris