masster
|
| Posted: 08/17/2002, 2:21 PM |
|
Hello to PHP+MySQL programmers community!
Here is a new quest: is there anyone who implemented a personal folder based authentication in CodeCharge?
Here are some details:
- there is a table with info about clients, including their e-mail addresses as usernames and their passwords;
- after the regitration procedure, it must be created a new folder on the server (Linux) and each client should have only reading rights;
-in that folder the administrator uploads ocasionally some files that should be downloadable by the client only after the process of authentication using the table which contains his username and password.
So, any clues?... Or CC tips?
Maybe some PHP snippets... They will be greatly appreciated.
Thank you.
|
|
|
 |
jimmy
|
| Posted: 08/18/2002, 7:04 AM |
|
From my knowledge this can't be done in PHP.
|
|
|
 |
masster
|
| Posted: 08/19/2002, 2:58 PM |
|
Is it true that it can't be done in CC the quest that I raised above?
|
|
|
 |
char
|
| Posted: 08/19/2002, 4:12 PM |
|
The object is to allow access to specific "personal folders" for download??
After authentication a PHP script can allow both upload and download capabilities. There are several off the shelf scripts that can do that - one I have used is at http://www.zachwhite.com/scripts.htm
Hope that helps
Char
|
|
|
 |
Ken
|
| Posted: 08/19/2002, 6:37 PM |
|
Sounds like you're going to have to write some custom code that is executed from a custom event within CC or CCS to create a file folder and then create an .htaccess file within that new directory for the person you are giving access to. This is the only way I think you can do it, unless you get a script someone else has written just like has been suggested here. You server will also have to support protected directories for my idea.
|
|
|
 |