/ Published in: PHP

list all files in directory and subdirectory
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function recurly_list($path){ $arrname[0]=1; foreach($arrobiect as $name){ if(($name == '.') || ($name=='..')){ }else{ $arr = recurly_list($path.'\\'.$name); }else{ } $i++; } } return $arrname; } $val = recurly_list('c:\\xampp\htdocs'); ?>
Comments
