Controlling file access with PHP
| From: | GamblerZG | Date: | Fri, 08 Apr 2005 17:03:30 +0000 |
| Subject: | Controlling file access with PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-212654@lists.php.net to get a copy of this message | ||
Problem: I have db with users, groups, passwords and permissions. I need to restrict access to some files for general public, but allow certain groups to download those files. Access restrictions should be based on permissions in the database.
I can set_time_limit() to a very big number, output file header, read file through PHP and output it through PHP, but that's not a very elegant solution.