Reply to Re: gdi question

Your name:

Reply:


Posted by Oli Filth on 10/13/01 11:26

steve said the following on 12/09/2005 14:32:
> i'm creating thumbnails from images on the server's hard drive. the code
> works however i'm getting some anomolous results...which on a consistent
> basis, i suppose, are "features". when i have a script that outputs multiple
> thumbnails, some images are shown while others remain blank and are shown
> with the classic red "X" image place holder and it's alt text. in the code
> below, am i leaving any handles open or causing memory leaks that could
> result in this behavior? any input is appreciated...tia.
>


I guess the simplest way to find out what's going on is to note down the
files that this isn't working for, and enter the corresponding URLs
directly into your browser (i.e.
http://example.com/image.php?ownerId=XXX&fileName=XXX...)

However, comment out the imagejpeg() line, and put in some diagnostic
output, i.e. echo out useful info at each stage of the script, to make
sure variables are what you expect them to be, and that functions are
being called successfully.

e.g.:
...
$fileData = @file_get_contents($filePath . $fileName);
echo "file_get_contents() " .
($fileData) ? "success" : "failure";

...
and so on...



--
Oli

[Back to original 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

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