Poi Posted May 13, 2006 Share Posted May 13, 2006 How might i make ti so with this file viewing code, it does not show the first 2 files listed?(It shows 2 files that arent there.)<? $dir = "uploads/";if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { echo "Filename- " . $file . "<br><form method='post' action='delete.php'><input type='hidden' name='file' value='$file'><input type='submit' value='Delete'> <br>\n"; } closedir($dh); }} Link to comment https://forums.phpfreaks.com/topic/9585-file-viewing/ Share on other sites More sharing options...
corillo181 Posted May 13, 2006 Share Posted May 13, 2006 what do you mean tha single and double dot? Link to comment https://forums.phpfreaks.com/topic/9585-file-viewing/#findComment-35410 Share on other sites More sharing options...
448191 Posted May 13, 2006 Share Posted May 13, 2006 [a href=\"http://us3.php.net/manual/nl/function.readdir.php\" target=\"_blank\"]Manual.[/a] Link to comment https://forums.phpfreaks.com/topic/9585-file-viewing/#findComment-35422 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.