Jump to content

No subdirectories with scandir FTP


veridicus

Recommended Posts

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

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.