Page 1 of 1

building an FTP application

Posted: Fri Oct 04, 2002 4:18 pm
by kendall
hi,

I have another question about the above topic that i need some advice on

I am building an FTP application that will have different user level and user access.

for example if i have user A and user B and i have directory 1 with folders A and B

A can see folder A and files in directory 1 but can only download and view

whilst B can see directory 1 and Folder A and B but can only delete files located in B

Now the question here is what is my best approach.
Should i (because of the complexity of level of security create an additional FTP account for each user)

or create one additional account and use PHP to determine the level of access and permissions

it probably also depends on my server feature (UNIX) which i am looking into but to get 2nd opinions on what is generally done in the aspects of security levels and permissions

Kendall

Posted: Fri Oct 04, 2002 5:45 pm
by mr_griff
Are you looking to setup an actual ftp server or simulate a web based one using php?

building FTP client

Posted: Mon Oct 07, 2002 7:26 am
by kendall
yes i am building and ftp client using PHP

Posted: Mon Oct 07, 2002 8:22 am
by volka

Building and FTP application

Posted: Mon Oct 07, 2002 5:46 pm
by kendall
hi,

i was reading the php.net documentation on ftp_get()

But it was not clear on defining the acutal local and remote file syntax,

i used the function like ftp_get($serv,"C:\Windows\$file","$DOCUMENT_ROOT/$file",FTP_BINARY);

which download successfully but i dont see the file

so i ask the following questions?

was that the proper syntax to use?
how will it locate the file to get? would it be relative or absolute? (the php file is in a different folder to the file to download)

if there isnt a local file will it create one?

there is ASCII and BINARY in FTP i know but when you say use ASCII for text files do you literally mean ".txt" files or text files like word doucments excel sheets?

thus a PHP file would mean FTP_BINARY?

Kendall