Back to DFS's Workshop Page
Back to Agenda Page


Show Thumbnails Problem

This problem is part of the larger Creating a Picture Website project. It will get information from the piclist.txt file and generate a page with all of the thumbnails serving as links to the original large pictures.

Your script should, in the end, do the following.

  1. Provide a link to the Edit Picture Info script, passing along the current directory.
  2. Use the explode() and list() functions to separate the information from each line in the piclist.txt file.
  3. Arrange the thumbnails in rows of six, making each a link to the original large picture.

Notes

It is best to write initial code which uses hardset values for the directory paths for the current directory (which starts with /home/) and the server path (which starts with the name of the machine and ~userid). Once you have that working, you can get information from the $_SERVER[] array to assemble the URL for displaying the pictures along with the picture directory path below the public_html directory.


© 2005-2006 DFStermole
Created 3 Dec 05
Last Modified 11 Jan 06