Jump to content

reading file directory


Destramic

Recommended Posts

ok this is what i have at the moment.

 

<?php

if ($handle = opendir('../')) 
{
    while (false !== ($file = readdir($handle)))
    {
        echo $file . "<br />";
    }

    closedir($handle);
}
?>

 

now in this loop it shows folders...but what i want to do is if the $file is a folder then open that up and read directory

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.