Jump to content

Find FTP User Root


T-Bird

Recommended Posts

In my website I have the site root which contains my ftp.php file that does all the work.  In that same directory is a subdirectory called files, and this is filled with an arbitrary number of subdirectories.  Each of these third level directories is a root directory for a different FTP user.  After the user logs into the FTP account I use ftp_nlist to return a list of available files.

 

However I want to have php do some operating on the files before downloading them, so I need to find a way to navigate to that user's folder.  The user folder can be named anything and be any number of directories deep.  Is there a way, after I log into an FTP account, to return the current FTP directory relative to the site's directory?

Link to comment
https://forums.phpfreaks.com/topic/143031-find-ftp-user-root/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.