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); }} Quote Link to comment 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? Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.