|
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]
|