Cache php-generated image until it changes
问题 I apologize in advance for my lack of knowledge on this subject; I've looked at lots of other posts but can't get any of their solutions to work for me. Anyway, I'm using a dynamic displayimage.php file to show users' profile pictures on a site I'm working on. The page takes an id parameter, and pulls the image filename from a mysql database. Here's the (abbreviated) code: $id = mysql_real_escape_string($_GET[id]); $table = "images_user"; $idname = "userid"; $uploaddir = "/home/username