Is there a way I can use PHP to force an image to display?
I don't want to set no-cache headers via my .htaccess as I have it doing exactly the opposite for the rest of the site images (far-future expires), and I don't want the script to rely on any outside caching/no-caching directives.
Right now I display a users avatar with a simple little function that just determines if one exists for them then creates the HTML img element for it and echo's that back to the browser. This works fine for the most part except that when a new avatar is uploaded, the page that loads displays the old image until you refresh the browser, and I want it to display immediately.
I thought of that, but I was trying to avoid having an additional script to display the avatars (http://localhost/images.php?myimage kinda deal) that it didn't cross my mind just to put them directly into the headers of the page that displayed the avatar.