I\'ve a directory outside the webroot with images, css and javascripts.
These files often change. I could write a script which locates the file, figures out the mime
Another suggestion: if you have control of the filesystem, you could perhaps create a symbolic link in the web-accessable directory to the image file? Either using exec() to invoke the 'ln' command or maybe the PHP symlink() function might work.