Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dir = "cargas/";
- // Open a known directory, and proceed to read its contents
- if (is_dir($dir)) {
- if ($dh = opendir($dir)) {
- while (($file = readdir($dh)) !== false) {
- if($file == $_POST['pdfabuscar']){
- echo('<a href="'.$dir . $file.'">'. $file .'</a>'."n");
- }
- }
- closedir($dh);
- }
- }
Add Comment
Please, Sign In to add comment