Re: [PHP] More efficient thumbnail script

2007-01-17 Thread Jason Pruim
On Jan 16, 2007, at 4:15 PM, Paul Novitski wrote: At 1/16/2007 12:54 PM, Jason Pruim wrote: First off, thanks to everyone who helped me get started with a thumbnail gallery that would display info you could just copy/paste into a weblog (Or any webpage) and have the picture display. I am

Re: [PHP] More efficient thumbnail script

2007-01-17 Thread Jochem Maas
BTW: always reply to the list unless asked otherwise. Jason Pruim wrote: you don't know what a class is or how to use one do you? (correct me if I'm wrong) the idea of my particular class is that it is used in the *script* that serves all your resampled images. something *like* (it an overly

Re: [PHP] More efficient thumbnail script

2007-01-17 Thread Curt Zirzow
On 1/16/07, Jochem Maas [EMAIL PROTECTED] wrote: Curt Zirzow wrote: On 1/16/07, Jochem Maas [EMAIL PROTECTED] wrote: ... if ($cacheState) { $headers = getallheaders(); if (isset($headers['If-Modified-Since']) ($headers['If-Modified-Since'] ==

Re: [PHP] More efficient thumbnail script

2007-01-17 Thread Jochem Maas
Curt Zirzow wrote: On 1/16/07, Jochem Maas [EMAIL PROTECTED] wrote: Curt Zirzow wrote: On 1/16/07, Jochem Maas [EMAIL PROTECTED] wrote: ... if ($cacheState) { $headers = getallheaders(); if (isset($headers['If-Modified-Since'])

[PHP] More efficient thumbnail script

2007-01-16 Thread Jason Pruim
Hello, First off, thanks to everyone who helped me get started with a thumbnail gallery that would display info you could just copy/paste into a weblog (Or any webpage) and have the picture display. I am moving along with a few additions and seem to be running into a problem. The script

Re: [PHP] More efficient thumbnail script

2007-01-16 Thread Jochem Maas
generating/resampling image data is a relatively heavy job for a script to perform. there maybe optimizations available in the script itself but generally caching the results the generation/resampling action is the way to increase performance ... you need a mechanism to check/store/retrieve cached

Re: [PHP] More efficient thumbnail script

2007-01-16 Thread Paul Novitski
At 1/16/2007 12:54 PM, Jason Pruim wrote: First off, thanks to everyone who helped me get started with a thumbnail gallery that would display info you could just copy/paste into a weblog (Or any webpage) and have the picture display. I am moving along with a few additions and seem to be running

Re: [PHP] More efficient thumbnail script

2007-01-16 Thread Jason Pruim
On Jan 16, 2007, at 4:10 PM, Jochem Maas wrote: generating/resampling image data is a relatively heavy job for a script to perform. there maybe optimizations available in the script itself but generally caching the results the generation/resampling action is the way to increase

Re: [PHP] More efficient thumbnail script

2007-01-16 Thread Jochem Maas
Jason Pruim wrote: On Jan 16, 2007, at 4:10 PM, Jochem Maas wrote: generating/resampling image data is a relatively heavy job for a script to perform. there maybe optimizations available in the script itself but generally caching the results the generation/resampling action is the way to

Re: [PHP] More efficient thumbnail script

2007-01-16 Thread Curt Zirzow
On 1/16/07, Jochem Maas [EMAIL PROTECTED] wrote: ... if ($cacheState) { $headers = getallheaders(); if (isset($headers['If-Modified-Since']) ($headers['If-Modified-Since'] == $lastModified)) { I was waiting for this to be mentioned... I would use a more

Re: [PHP] More efficient thumbnail script

2007-01-16 Thread Jochem Maas
Curt Zirzow wrote: On 1/16/07, Jochem Maas [EMAIL PROTECTED] wrote: ... if ($cacheState) { $headers = getallheaders(); if (isset($headers['If-Modified-Since']) ($headers['If-Modified-Since'] == $lastModified)) { I was waiting for this to be mentioned...