[PHP] Linking to local files

Whats the best way to open local files (through HTML link) in the browser? Currently Im throwing the file path to a new page and using readfile to get the file contents trying to base Content-type off of the file extension, but I’m hoping there’s possibly a better way. I’m dealing with files linked relatively and absolutely; files in the server directory and those out (somewhere on the local drive).