You are here: Re: Script Crashing « PHP Programming Language « IT news, forums, messages
Re: Script Crashing

Posted by Lee Marsh on 09/25/66 11:16

Ugg, that's the problem though. It's on my host's server, and I don't have
the $$ for anything nicer than a virtual server which puts the config files
in their hands, and they're very obstinate about keeping their config files
the same. Do you have any idea how I might be able to calculate the
threshold and put some sorta check on that so the script doesn't crash?

Also, do you not think it's strange that although I can send photos that are
large, I can send files of equivelent file size (in this case 800KB)? On a
similar note, I messed around with it some more, and the script will
actually allow for images larger than the dimension I gave originally,
however, the thumnail is a blank black image rather than, well, an actual
thumnail? What do you think?
--
<=============>
--Lee
http://www.inaneasylum.org

Goodbye, adios, bis bald, see ya later, wiedersehen, and everything in
between
"Daniel Tryba" <partmapsswen@invalid.tryba.nl> wrote in message
news:428a863e$0$64558$c5fe704e@news6.xs4all.nl...
> Lee Marsh <burgermeister01@fake.com> wrote:
>> ImageJpeg($dst_img, "users/$uname/$album/small/$pic_name", 60); //copies
>> thumnail to appropriate folder with quality adjustment
>>
>> Now the funny thing is that this works fine on my own computer where I
>> test
>> stuff out before making it live. When I upload it to my website however,
>> these large pictures crash. This makes me wonder if it's not some sort of
>> PHP config setting. The dimension in which I have found this is a problem
>> is, 2032x1524 pixels. Anyways, any help would be greatly appeciated, and
>> TIA.
>
> Your only the second person to ask the same question this week :)
>
> It's propably a memory limit, said dimension needs 12387072 bytes of
> memory. Default is 8Mb max IIRC. You can check this by looking at the
> error messages (set level to E_ALL and use a decend tool (like lynx
> -source URL | less) or simply send it as "text" (remove image/foo
> header))

 

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

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