PHP class to retrieve files located in directories outside the web server context
It is assumed that the developer knows well enough to not pass user variable into the path
Include the class either with :
require_once('GetMyFile.class.php');
or by adding it to your auto include scheme.
$fileGetter = new GetMyFile('/path/to/some/file.ext'); $fileGetter->serveFile();
Of course, the web server user will have to have read access to the file and execute access to the traverse the path