Guest User

Untitled

a guest
Jun 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <?php
  2.  
  3. $dir = "cargas/";
  4.  
  5. // Open a known directory, and proceed to read its contents
  6. if (is_dir($dir)) {
  7. if ($dh = opendir($dir)) {
  8. while (($file = readdir($dh)) !== false) {
  9. if($file == $_POST['pdfabuscar']){
  10. echo('<a href="'.$dir . $file.'">'. $file .'</a>'."n");
  11. }
  12. }
  13. closedir($dh);
  14. }
  15. }
Add Comment
Please, Sign In to add comment