Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div style="width:1024px;margin:auto;text-align:center;">
- <?php
- set_time_limit(0);
- $dir_now = "c:/folder";
- $c = null;
- function show_files($dir_now){
- $handle = scandir($dir_now);
- $handle[0] = null; $handle[1] = null;
- for($i = 0;$i<count($handle);$i++){
- if(is_dir($dir_now."/".$handle[$i])){
- $c .= "<span style='font-size:18px;font-weight:bold;'>".$handle[$i]."</span><br />";
- $save = scandir($dir_now."/".$handle[$i]);
- $save[0] = null; $save[1] = null;
- for($y = 0;$y<count($save);$y++){
- if($save[$y] != 'Thumbs.db'){
- $c .= $save[$y]."<br />";
- }
- }
- }else{
- if( $handle[$i] != 'Thumbs.db'){
- $c .= $handle[$i]."<br />";
- }
- }
- }
- echo $c;
- }
- show_files($dir_now);
- ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment