This code seems to work. Have I got it right?
No. I have not. Sometimes the images are viewed from the cache, just to get downloaded from the server again next time, just a minute later, when I try again.
My local development server is running IIS, my production server is running Apache. Where is the best place to look for If-Modified-Since? Is $_GET['If-Modified-Since'] a safe bet?
No, it's a http header, not a get parameter. I'm not sure if this header is made available under IIS. Under apache you could use apache_request_headers().
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php