. */ const VIDEO_DIR = '../video/unwatched'; $contents = []; $errors = []; if (is_dir(VIDEO_DIR)) { $handle = opendir(VIDEO_DIR); if (!$handle) { $errors[] = "error opening directory: " . VIDEO_DIR; return; } while (false !== ($entry = readdir($handle))) { if ($entry != '.' && $entry != '..') $contents[] = $entry; } } ?>
VIDEO_DIR: ""
count: ""
	

errors


	
"; foreach ($contents as $item) echo "
  • $item
  • "; echo ""; } ?>

    debug