You are here: Re: PHP dies when you use imagecreatefromjpeg() « PHP Programming Language « IT news, forums, messages
Re: PHP dies when you use imagecreatefromjpeg()

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация