Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 29th, 2005, 11:10 PM
Registered User
 
Join Date: Jun 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

 
Old July 8th, 2005, 07:23 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

Do you think of using gd library for writing a copyright notice on images.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 16 Beginning php5, apache, mysql, web dev charlie2450 Beginning PHP 1 September 13th, 2008 02:07 AM
Chapter 16 Fig 16-11 krsouthern BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 1 July 8th, 2008 12:11 PM
PHP5 chapter 4 exercise code error? pmd BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 June 23rd, 2008 12:56 PM
Chapter 16 Generating Graphics (PHP5) CCIX BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 June 29th, 2005 10:24 PM
chapter 16 ?? farsfar2 BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 11 March 26th, 2005 10:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.