SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: FTP Window

  1. #1
    SitePoint Addict
    Join Date
    Aug 2009
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    FTP Window

    Hi Chaps,

    Fully aware that this is not strictly a PHP based query, but I am hving problems with PHP / File Uploads to a FTP site.

    Basically, I have a PHP app that requires login, the login credentials determine which FTP folder to read on sucessful login. The user can then browse the FTP folder, upload and download files. The user cannot access/view any FTP folders other than their specific folder.

    I'm looking into alternatives to PHP/PHP_FTP file uploads, as using Form POSTs or Java has caused problems for some, but not for others.

    My question is: is there any controls that can open a MS-style Explorer FTP Window, outside of the app (i.e. in a pop-out exporer window) that can restricted a user to a certain folder level e.g.:
    FTP-Root

    - Freelance

    - User-A
    - Folder-1
    - Folder-2
    - Folder-3

    - User-B
    - Folder-1
    This would mean that when User A logs in, his default FTP Window/access would be User-A, and would be able to browse down to Folder-3, but could not see User-B, Freelance or FTP-Root folders.

    Again, sorry if this is misplaced.

  2. #2
    SitePoint Guru
    Join Date
    Aug 2009
    Posts
    669
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cpanel actually has something like this but you have to download a script and run it for it to install on the users system. I don't think it can be done through a browser although i have a vague recollection of the cpanel file manager offering something similar.

    Either way its an advanced bit of coding so i suspect you may need to become creative with your googling.
    I'll do anything to avoid working on my own code

    Are you using: if (isset($_POST['submit'])) ?
    IE has a bug and does not always send the value.

  3. #3
    <?php while(!sleep()){code();} G.Schuster's Avatar
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Simplest thing: create FTP accounts.
    With a server like ProFTPd you can hav credentials stored in a database and ProFTPd handles all those ACLs for you.
    If you're on a shared host there's no way to use any other tools - how should e.g. Explorer know which folders the user may see?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •