I was wondering if anyone has devised a way to use PHP to control the access of web accessible files in Apache? Is this even possible? I was thinking that htaccess would have to be used and PHP passes the arguments to it. Though from what I've read this looks pretty impossible to do without giving away the security information. Or am I looking at using PHP to manage an offline section of the server and pass all file downloads through a wrapper script?
Just looking for your insights into this problem.