T-Bird Posted January 29, 2009 Share Posted January 29, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.