Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-29 Thread Børge Holen
On Friday 30 November 2007 00:39:39 Chris wrote: > > Hell, I'm all ok with this method... but does (different) webhotells take > > into account the amount used with cache/temp files. > > If so, some check should be used, and if not. Cache it all!, and remove > > the timelimit, some check for the ch

Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-29 Thread Chris
Hell, I'm all ok with this method... but does (different) webhotells take into account the amount used with cache/temp files. If so, some check should be used, and if not. Cache it all!, and remove the timelimit, some check for the change of image of course, but that all depends if you acctual

Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-29 Thread Børge Holen
On Thursday 29 November 2007 06:03:32 Chris wrote: > > In my solution, I use two scripts. One for showing the image true size > > and another for generating a thumbnail -- I may be wrong, but I think > > it's better to generate a thumbnail as needed on the fly than it is to > > store both images (l

Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-29 Thread David Giragosian
On 11/28/07, Chris <[EMAIL PROTECTED]> wrote: > > > > In my solution, I use two scripts. One for showing the image true size > > and another for generating a thumbnail -- I may be wrong, but I think > > it's better to generate a thumbnail as needed on the fly than it is to > > store both images (la

Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-28 Thread Chris
In my solution, I use two scripts. One for showing the image true size and another for generating a thumbnail -- I may be wrong, but I think it's better to generate a thumbnail as needed on the fly than it is to store both images (large and thumbnail) in the dB. Cache it on the filesystem ev

Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-28 Thread tedd
At 6:12 PM -0600 11/28/07, David Giragosian wrote: Thing is, the above works just fine as long as I hard code a switch case for every image file pulled from the db. What I can't seem to do is dynamically extend it to include newly uploaded images, i.e., for an image count greater than what I've h

Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-28 Thread Jochem Maas
... >>> >> http://www.wellho.net/solutions/php-example-php-form-image-upload-store-in-mysql-database-retreive.html having taken a quick look at that page I can only hope that you aspire to write alot better code than that! >>> Thanks very much for reading this long post. >>> >>> David >>> >> > T

Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-28 Thread David Giragosian
On 11/28/07, Jochem Maas <[EMAIL PROTECTED]> wrote: > > you need a *seperate* script that outputs the image data only (+ relevant > headers) > and then you refer to that script (passing it a suitable parameter so it > knows > which image to output) in the src attribute of an IMG tag. > > you seem t

Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-28 Thread Jochem Maas
you need a *seperate* script that outputs the image data only (+ relevant headers) and then you refer to that script (passing it a suitable parameter so it knows which image to output) in the src attribute of an IMG tag. you seem to be trying to output image data and html in a single request, whi

[PHP] Dynamic Display of Images Stored in DB

2007-11-28 Thread David Giragosian
Good Afternoon All, The recent threads about images got me to finally experiment with storing into and retrieving/displaying images from a database. Uploading and retrieval is fine, I'm just a bit uncertain about creating the dynamic display part. // getting the data out of the db $imageCountinDB