I have a number of images that I don't want the user to have direct access to. I'm therefore using readfile to pass it through.
The problem I have is that it shows thumbnails OK, but full-size images are being corrupted most of the time.
I've tried numerous things, and I have a test.php that is cut right down to the basic 2 lines:
header("content-type:image/jpeg");
readfile("c:\Inetpub\PhotoAlbums\26\63.jpg");
No matter WHAT I do, I can't get this to work. I've also tried using fopen and fpassthru, but nothing works.
The URL to see what I mean is:
http://saltyseal.com/albums/test.php (apologies for the test pic).
If the pic loads first time then either refresh or clear the cache and try again - it WILL fail, and does so about 80% of the time at the moment.
Can anyone help? This is really driving me mad!
Ta,
darren