What we did in part 2
In this last instalment, we wrote an easy-to-use function that generates img tags based on database data. We also made a search script to find the images in the database. In the last section of the article, we tried writing a real script using our newly created function.
If you're finished with these two parts, you've now got the following files and directories:
- imgtag.php: the script that generates the img tag
- search.html: the search form
- search.php: the search script
- upload.html: the upload form
- upload.php: the upload script
- bigimage.php: the pop-up script
- img.php: the script that does the actual resizing
- bin/: a directory containing the external conversion software
- img/: the directory containing the images.
You can also download the complete directory structure as a tar.gz (102 kB).