Chapter 16 Generating Graphics (PHP5)
Hello,
I would like to display pictures with displaying the actual picture with php code (as page 599 of book "Beginning PHP5").
I found out that it is pretty easy to do this with 1 picture and a copyright watermark, also thumbnails are easily created from a large image.
My question:
Now I have a database(mysql) that contains filenames+paths of all images, now I would like to display 10 thumbnails at a time on each page with using a pagination system.
I'm thinking about displaying the (PHPimages within IFRAMEs, that is not a problem, the problem is, how do I get an image path+filename (from the database) on the "showjpeg.php" file? so that i can use just 1 "showjpeg.php" file to show all images.
Or it maybe impossible..?
---------------------------------------------------------------------
Ofcourse I could just show the images the easy way without php generated images, but the reason that I want to use php generated images is because:
- Make the loading time much faster (smaller file size)
- I can easily use a copyright image without modifying the original images.
Thats why I want to use PHP generated images.
Another question, does the same code work for both PHP 4 and 5?
(as the code described in the book "Beginning PHP5" starting from chapter 16 page 599)
Can anyone help me out?
Thanks you:)
CCIX
|