Jump to content

About directory contents in web


amiteshpurwar

Recommended Posts

Why this code is not working..??

i m a noob.

Please Help me.

$dir = "http://googleblog.blogspot.com/2006";

 

// Open a known directory, and proceed to read its contents

if (is_dir($dir)) {

    if ($dh = opendir($dir)) {

        while (($file = readdir($dh)) !== false) {

            echo "filename: $file : filetype: " . filetype($dir . $file) . "\n";

        }

        closedir($dh);

    }

}

 

?>

Link to comment
https://forums.phpfreaks.com/topic/164081-about-directory-contents-in-web/
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.