Wrox Programmer Forums
|
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 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, 12:43 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 (see 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..?

Can someone help me out?

Thanks
 
Old June 29th, 2005, 10:24 PM
Registered User
 
Join Date: Jun 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?

Thank you
:)





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 PHP How-To 1 July 8th, 2005 07:23 AM
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.