PHP Write File Directory


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function writeDirectory($dir){
  2. $dh = opendir($dir);
  3. while (false !== ($filename = readdir($dh))) {
  4. if (strpos($filename, ".mov") > 0 && strpos($filename,".") != 0) {
  5. echo $dir . "/" . $filename;
  6. }
  7. }
  8. }

Report this snippet


Comments


You need to login to view comments.