On Thursday 16 January 2003 13:23, Bobby Patel wrote:

> I AGREE that storing images strored on disk is a valid approach PROVIDED
> that you only need 1 image per page, but if you need to grab a bunch at a
> time, I do beleieve that storing the actual file on the dB is faster.
>
> I would like to hear from the list, of people that have worked with images
> and PHP. I just started with images, so I just want to take the right path.

I would say develop your application so that it both stores the images in the 
DB _and_ copies it to the filesystem -- it should only require a few more 
lines of code. Then have a flag at runtime which decides whether to retrieve 
images from DB or from filesystem. Once you have enough data you can easily 
determine which method is faster and subsequently comment/remove the 
insertion code for the slower method.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Be sure to evaluate the bird-hand/bush ratio.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to