|
Posted by Oli Filth on 10/01/25 11:26
steve said the following on 12/09/2005 19:08:
> | 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.
>
>
In that case, I guess you should append the diagnostics to a server-side
text file. So you can just keep refreshing until a picture doesn't show,
and then examine the log file.
--
Oli
Navigation:
[Reply to this message]
|