I'm building a site for a client and they want to put some protected files on a server for members to download.
We're using PHP because that's how the existing code is done.
The trick is they don't want non-members to be able to download the files. Is there a tool in php that would let me stream a file out to a user? I also need to preserve the file's extension so it can't be downloaded as a php file. It could be a .doc or a .pdf or a .zip. How about a package that I could install on the webserver? The server will be an apache webserver running on Solaris. I also have access to perl if I need it.