Investigating PHP
I am currently working my way through MySQL for Dynamic Websites by Larry Ullman (edition 4).
I currently (December 2012) run php 5.3.10-10 and a mysql 5.1.28 database on apache 2.2.22 server on Ubuntu 12.04 in VirtualBox.
Chapter 11: Review and Pursue
files.php: Dec 2012
The php script in the pdf below is my take on part of the 3rd exercise in Chapter 11 PHP and MYSQL for Dynamic Web Sites (ed4) by Larry Ullman.
This script just displays all the files in the directory "uploads" along with some information about the files.
As with the original script, each file name is also a link which when clicked displays the file.
As an experiment, I inserted some file types into the directory whose MIME types are not recognised by the script.
This displays the default image/message when clicked.