Re: building web album - design questions
| From: | Rick Emery | Date: | Thu, 09 Jan 2003 20:26:08 +0000 |
| Subject: | Re: building web album - design questions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130998@lists.php.net to get a copy of this message | ||
1. Store images separately with pointers in the database. It permits faster database queries.
2.
3. int imagecopyresized ( resource dst_im, resource src_im, int dstX, int dstY, int srcX, int srcY,
int dstW, int dstH, int srcW, int srcH)
----- Original Message -----
From: "Anders Thoresson" <listor@thoresson.net>
To: <php-general@lists.php.net>
Sent: Thursday, January 09, 2003 2:20 PM
Subject: [PHP] building web album - design questions
Hi,
I'm planning to build a web album for my digital photographs, and have
some questions regarding the design:
1) Is it better to store the images within the database, or just store
pointers to the images which is put outside, in the filesystem?
2) At log in, I want to show to which albums new pictures have been added
since last visit. For performance reasons, should information about last
added pictures be added to the database, or is it ok to make a MySQL-query
each time, comparing the add-date for every picture in every album with the
users last log in date?
3) If I've understood things right, there is functions within PHP that
can handle picture resizing? Is that correct?
Best regards,
Anders Thoresson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php