Re: Making thumbs same size

From: Date: Tue, 05 Jun 2007 14:17:41 +0000
Subject: Re: Making thumbs same size
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-256089@lists.php.net to get a copy of this message
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. Any thoughts? Cheers, tedd PS: I thought that at least someone would tell me that my dog was cute. -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#256089) next »