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
upload_file.php: Dec 2012
The php code 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.
The script doesn't include all mime types but covers a few additional types that I found interesting.