So I am trying to serve large files via a PHP script, they are not in a web accessible directory, so this is the best way I can figure to provide access to them.
The
Have a look at fpassthru(). In more recent versions of PHP this should serve the files without keeping them in memory, as this comment states.