Why isn't this image being displayed with TimThumb?
I am using TimThumb at http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/.
I have adjusted the memory_limit to "5000MB" in my php.ini file and in the TimThumb code I adjusted the code to the following:
define ('MEMORY_LIMIT', '30M'); // set PHP memory limit
define ('MAX_FILE_SIZE', 7000000000); // file size limit to prevent possible DOS attacks (roughly 1.5 megabytes)
The picture itself i开发者_如何学Gos only 2.23 MB, the last time I checked that wasn't that big lol.
You need to use ini_set(), not a define() to change php settings:
ini_set('memory_limit','64M');
edit: noticed the memory it reports is 30M, so maybe the thumbnail script uses the defined value. Either way, just increase your memory limit until it works.
精彩评论