Advertisement
phirani

Upload error code

Dec 12th, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. <?php
  2. $dir_open = opendir('uploads');
  3.  
  4. while(false !== ($filename = readdir($dir_open))){
  5. if($filename != "." && $filename != ".."){
  6. $link = "<a href='uploads/$filename'> $filename </a><br />";
  7.  
  8. echo $link;
  9.  
  10. }
  11. }
  12.  
  13. closedir($dir_open);
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement