A similar question was asked here
Serving images from outside of document root
The solution given and accepted was using Apache Aliases.
However, doe
You could do something like this...
<?php // somehow assign $file from a query string or database or whatever header("Content-length: ". filesize($file)); header("Content-type: ". mime_content_type($file)); readfile($file);