Posted By

sedgemonkey on 02/22/11


Tagged

php files


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

tux-world


PHP Write File Directory


 / Published in: PHP
 

  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  

You need to login to post a comment.