Jump to content

Include a directory's contents


acid.waste

Recommended Posts

I am trying to use the following code to include a directories contents and was wondering what im doing wrong, because its not working?

if ($handle = opendir('../configs')) {


    while (false !== ($FILEZ = readdir($handle))) {
        include "$FILEZ";
    }

    closedir($handle);
}

Link to comment
https://forums.phpfreaks.com/topic/217620-include-a-directorys-contents/
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.