Jump to content

add directory


jagguy

Recommended Posts

Im not sure exactly what your asking, but here is simply how you get the filenames into an array:

[code]
$open_dir = opendir("dirname");

$c=0;
while ($file = readdir($open_dir)) {
  if ($file != "." && $file != "..") {
    $files_array[$c]['filename'] = $file;
  }
  $c++;
}
[/code]
Link to comment
https://forums.phpfreaks.com/topic/27818-add-directory/#findComment-127279
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.