Jump to content

check a variable is not a folder/directory


p5y

Recommended Posts

 if ($d = opendir("uploads")) {
    while ($file = readdir($d)) {
      if ($file != "." && $file != ".."    )
   //  if( is_file($file) )
       {
        $files[] = $file;
      }
    }
    closedir($d);
  }

if ($file != "." && $file != ".."    $file !=  ????????  )

 

just a bit stuck here

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.