Re: Making thumbs same size
| From: | Robert Cummings | Date: | Tue, 05 Jun 2007 14:23:46 +0000 |
| Subject: | Re: Making thumbs same size | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256092@lists.php.net to get a copy of this message | ||
On Tue, 2007-06-05 at 10:17 -0400, tedd wrote:
> At 3:33 PM +0200 6/5/07, Zoltán Németh wrote:
> >2007. 06. 5, kedd keltezéssel 09.17-kor tedd ezt írta:
> >> At 9:56 AM -0400 6/4/07, Robert Cummings wrote:
> >> >On Mon, 2007-06-04 at 09:50 -0400, tedd wrote:
> >> >>
> >> >> Don't scale, resample. See here:
> >> >>
> > > >> http://www.webbytedd.com/b/thumb/index.php
> > > >
> >
> > > PS: It's always pays to have someone
> >knowledgeable review your code -- thanks.
> >
> >one more note:
> >you have ignore_user_abort(); in the beginning of the script, but
> >according to the manual ( http://php.net/ignore_user_abort
> >) it should
> >be used like ignore_user_abort(TRUE); otherwise it only returns the
> >current setting...
>
> Zoltán:
>
> Ah yes, I see. I'll remove that statement
> altogether. That statement is only to keep
> processes running (regardless of the user's
> actions) to their completion, like updating a dB.
> The code I provide in the demo simply presents a
> thumbnail to the user and if the user is not
> there, then why continue anyway? Thus, no reason
> to continue, right?
>
> However, there seems to be some disagreement
> about what the ignore_user_abort() returns.
>
> Also, in my readings, I have read several books
> that say keeping any sort of error reporting code
> in your public script is not a good idea. In
> other words, don't give possible evil-doers any
> information. So, I should remove the error
> reporting statements as well.
Yeah... I thought maybe you left that there intentionally since you're
exposing your code :)
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'