Negasus

Untitled

Sep 27th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. <?php
  2.  
  3. $dir=$_POST['load'];
  4.  
  5. if (is_dir($dir)) {
  6.     foreach (glob($dir . '/*') as $file) {
  7.         $filestring = file_get_contents($file);
  8.         preg_match('~-x(.*)-c~Uis', $filestring, $result);
  9.         echo $file . "\t\t" . $result[1] . "\n";
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment