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:[email protected]/) 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:[email protected]/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? Link to comment https://forums.phpfreaks.com/topic/55306-no-subdirectories-with-scandir-ftp/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.