You are here: Re: Error Creating an Image from an Uploaded File « PHP Programming Language « IT news, forums, messages
Re: Error Creating an Image from an Uploaded File

Posted by ctiggerf on 02/05/07 21:34

On Feb 5, 3:37 pm, "P Pulkkinen"
<perttu.POISTATAMA.pulkki...@POISTATAMA.elisanet.fi> wrote:
> > What's your error level reporting level, since imagecreatefromsomething
> > functions echo error message when they fail.
>
> you could put to the beginning of script:
>
> error_reporting(E_ALL);

Thanks for your quick replies.
I turned the error reporting on, (it wasn't set high enough to see the
notices) and it is reporting:

Notice: Undefined variable: new_image in /home/content/o/t/b/
otbadmin356/html/order.php on line 365

Which corresponds to the line after the switch statement:

if(!$new_image) { return array(false, "Error Creating Image #$i from
$temp - $type."); }

So I put some echos in to see if I was ever getting inside the switch
statement, and I am. However I do not see any output from the
imagecreatefrom functions.

 

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

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