1. In my project, user will upload picture and zip client file to server by form and PHP. Will it be the best way to create user directory and .htaccess file when new user come?
Difficult to say something, without knowledge about the whole concept.
- What happens with the uploaded files?
- The only action users can done is uploading files?
Yup, actually the front end is flash and users most likely just upload files. The flash will operate with PHP to those files through xml. Operation includes converting and resizing picture to png thumnail and a normal jpeg image, converting movie file like 3gp, mov, wmv to flv, deleting the temp files, etc. Actually, it's an education project. These files relate to assignment, thus only student himself can access. So I consider dynamically create user account and .htaccess by PHP.
Wiedmann wrote:But i think you can manage your users and privileges with PHP/MySQL (without ".htaccess").
I wonder in PHP I need to secure each individual file in a directory while .htaccess can done for the whole subdirectory.
Wiedmann wrote:(BTW: There are ready scripts for filesharing websites with user management. )
Will you be so kind to list some reference?
Why did you use an Apache webserver and not the webserver from Windows (eg. Microsoft Server 2003 Web Edition) if you have such requirements? (and of course, you have paid already for that server...)
This project will be deliver to Secondary Schools. Budget will be a concern to them.