|
Posted by Erwin Moller on 04/10/06 18:43
comp.lang.php wrote:
> PHP version 4.3.9
> GD version 2.0.2
>
> Whenever I use imagecreatefromjpeg(), PHP completely dies. No errors,
> no warnings, no notices, it dies in the following manner:
>
> If using Firefox it just stops running cold
> If using Konqueror you get the message "An error occurred while
> processing http://www.blah.com/tools/app"
>
> I can't get any more information than that. Has anyone run into this
> before?
>
> Thanx
> Phil
Hi Phil,
If you want to debug imagecreation scripts, you need some way to get to the
errors.
If you have a PHP script that returns an image (content-type: image/png etc
etc) I found the easiest way to change the header of that script into
text/html, in that way if you call the script directly, you'll see the
errors.
Of course, you can also let PHP log errors (from php.ini) and find them in
the logfile.
In both cases, make sure you have errorreporting on, to E_ALL & E_STRICT
Hope that helps.
Regards,
Erwin Moller
[Back to original message]
|