Re: imagecreatefromjpeg

From: Date: Sun, 09 Jan 2005 15:00:34 +0000
Subject: Re: imagecreatefromjpeg
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-205904@lists.php.net to get a copy of this message
On Sun, 9 Jan 2005 21:37:33 +1100, Juergen Rehberger <juergreh@onentersite.com> wrote: > i have a problem with my resizing image script. > > It all works fine on my localhost server, but once i upload the whole thing on my webhost, the > script allows resizing of images not bigger than 600kb or something aournd that size. so my > question. does that problem depend on settings from my webhost. i uploaded (without resizing) images > with a filesize of 1.2mb and it was working. but once i try to add the resizing function i get > following error message > > Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 1632 > bytes) in /var/www/html/familie/cms/addimage.php on line 39 It looks like your script has tried to allocate more than the default 8MB memory limit in php.ini. Is the default on your offline server different? Try: grep memory_limit /usr/local/lib/php.ini (or wherever your php.ini lives) to find out. Regards, -- Alex

« previous php.general (#205904) next »