Do you have a question? Post it now! No Registration Necessary. Now with pictures!
November 29, 2006, 11:04 pm
rate this thread
nothing seems to be helping.
When trying to load an very large JPEG (about 4 meg) I was getting
memory errors as you'd expect. So I bumped the memory_limit up and I
no longer get an error - NOW everything just stops.
Below is a demonstration:
echo "memory_limit: ".ini_get("memory_limit")."<br>";
echo "before function call<br>";
$image = imagecreatefromjpeg('product_images/image.jpg');
echo "after function call<br>";
The Output is:
before function call
and that's it. PHP is dying on the imagecreatefromjpeg function. I
can run a smaller image through it (about 1 meg) no problem.
Anybody know what's happening here?
- Alvaro G. Vicario
November 29, 2006, 11:26 pm
Re: imagecreatefromjpeg failing
If you have access to your web server error log, you can normally find info
there. I'd say the PHP interpreter is crashing.
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com