veridicus Posted June 12, 2007 Share Posted June 12, 2007 I'm using PHP 5.2.0. If I use scandir with an FTP URL (ftp://username:password@domain.com/) I'm not seeing any subdirectories, just regular files. The documentation states you should get the ., .., and any other subdirectories in the array which is returned. Any idea why I'm not getting them? Actually the only reason I found this problem is because of another one. If I try to scandir on a subdirectory (ftp://username:password@domain.com/subdirectory) it tells me the subdirectory doesn't exist. I've manually FTPed to the server and clearly see the subdirectories. I'm connected in passive mode, same as PHP. What's going on? Quote Link to comment https://forums.phpfreaks.com/topic/55306-no-subdirectories-with-scandir-ftp/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.