Jump to content

Looping an external directory?


tomtom

Recommended Posts

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

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.