I am building a simple cms system for a site that is archiving books.I wish to allow the owner to upload an image title description etc into a DB. I have a simple script working which was taken from sitepoint -DB driven website chapter 10- filestore.php. However i need to either create a thumbnail on the fly or create one before hand and upload it with the main image. I don't know how to integrate this into the script i have already. Any help appreciated!