You are not logged in.

Login
Username:
Password:


Introduction to UNIX

Random Pics and Quotes; 100 points

Display a random picture and/or quote from a pool of selected pictures or quotes on your web page.

P A R T     O N E     50 points

(i) Get some pictures; you could use the ones from your picsite project or get some new ones; up to you.

(ii) Put the pictures into some directory (use meaningful names for the pictures).

(iii) Write a script that randomly selects the pictures for display on your site, i.e. each refresh/hit of the page could be a different

P A R T     T W O     50 points

(i) Make a directory called quotes in your public_html directory.

(ii) Make files called 1, 2, 3, etc. ... up to about 15 and in each of the files put some quotes.

(iii) Write a script that randomly uses one of these quotes each time the page is called. You will use the PHP include function for this.

Last modified Saturday, 08th December, 2007 @ 11:58pm