echo "<img src='gif.php?name=$picname'>";
...from another php file.
it's working great, BUT i've noticed two things that bother me:
[1] if someone wants to download an image, they can, but it will be downloaded as "gif.php" instead of "whatever.gif". even though renaming the file solves the problem, users will be confused by this.
[2] (and i think this may be related to the first problem) is that in at least one of my browsers (camino/osx) the images are ALWAYS pulled directly from the server. they are never cached by the browser. i suppose all browsers may be behaving this way, but in camino, it is blatantly and visually obvious as you watch the gif being slowly downloaded/displayed over a slow connection.
anyone know what to do for either of these? concerning [2], i'm thinking maybe i can implant the local browser cache _manually_ instead of depending on the browser to do it for me? if so, how would i go about doing that?
thanks.
- philip
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php