You are here: Re: gdi question « All PHP « IT news, forums, messages
Re: gdi question

Posted by Hilarion on 09/13/05 13:09

> | 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...
>
> actually, i have done those things...and the images it does this on are
> hit-and-miss. meaning, that if i show a list of thumbnails on a page and hit
> refresh on the browser a number of times, the files that show and don't show
> will vary and not in some rational pattern...even though the images being
> requested never change.


This may be not GD problem but connection problem. Your browser is requesting
many (maybe all) images at the same time. Probably your server is limiting
the amount of connections so the browser gets the error instead of the image.
Try increasing your server connection limits or configure your browser to
limit count of connections opened at one time (it should queue image requests).


Hilarion

 

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

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