For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > March 2004 > Error message with jpeg load function









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Error message with jpeg load function
Snah

2004-03-29, 6:30 am

hi,

the following php function results in the following error, anyone an idea ?

$this->img["src"] = ImageCreateFromJPEG ($imgfile);

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 6400 bytes)



Andy Hassall

2004-03-29, 4:31 pm

On Mon, 29 Mar 2004 10:10:39 GMT, "Snah" <taja2005@hotmail.com> wrote:

>the following php function results in the following error, anyone an idea ?
>
>$this->img["src"] = ImageCreateFromJPEG ($imgfile);
>
>Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
>allocate 6400 bytes)


Pretty straightforward; your image is too big, so you've hit the PHP memory
limit.

Increase memory_limit in php.ini, or decrease the size of the image.

--
Andy Hassall <andy@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com