tomtom Posted August 17, 2008 Share Posted August 17, 2008 Hey. I need help looping an external directory. I have a folder on one site http://www.blabladoesntreallymatter.com/folder and I'd like to open it, and loop all the files in it on another site but when I do this I get the error "failed to open dir: not implemented in..." <?php $dh = opendir("http://www.blabladoesntreallymatter.com/folder/"); while (($file = readdir($dh)) !== false) { echo $file; } ?> Link to comment https://forums.phpfreaks.com/topic/120102-looping-an-external-directory/ Share on other sites More sharing options...
trq Posted August 17, 2008 Share Posted August 17, 2008 From the manual. 5.0.0 path supports the ftp:// URL wrapper. 4.3.0 path can also be any URL which supports directory listing, however only the file:// URL wrapper supports this in PHP 4 Does the directory your trying to browse support directory listing? Link to comment https://forums.phpfreaks.com/topic/120102-looping-an-external-directory/#findComment-618733 Share on other sites More sharing options...
tomtom Posted August 18, 2008 Author Share Posted August 18, 2008 I don't know; how can I tell? It's permissions are 755 but I still recieved the same error when I chmod'ed it to 777 Link to comment https://forums.phpfreaks.com/topic/120102-looping-an-external-directory/#findComment-619084 Share on other sites More sharing options...
tomtom Posted August 19, 2008 Author Share Posted August 19, 2008 bump Link to comment https://forums.phpfreaks.com/topic/120102-looping-an-external-directory/#findComment-619919 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.