Guest User

Untitled

a guest
Mar 18th, 2014
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <div style="width:1024px;margin:auto;text-align:center;">
  2. <?php
  3. set_time_limit(0);
  4. $dir_now = "c:/folder";
  5. $c = null;
  6. function show_files($dir_now){
  7. $handle = scandir($dir_now);
  8. $handle[0] = null; $handle[1] = null;
  9. for($i = 0;$i<count($handle);$i++){
  10. if(is_dir($dir_now."/".$handle[$i])){
  11. $c .= "<span style='font-size:18px;font-weight:bold;'>".$handle[$i]."</span><br />";
  12. $save = scandir($dir_now."/".$handle[$i]);
  13. $save[0] = null; $save[1] = null;
  14. for($y = 0;$y<count($save);$y++){
  15. if($save[$y] != 'Thumbs.db'){
  16. $c .= $save[$y]."<br />";
  17. }
  18. }
  19. }else{
  20. if( $handle[$i] != 'Thumbs.db'){
  21. $c .= $handle[$i]."<br />";
  22. }
  23. }
  24. }
  25. echo $c;
  26. }
  27. show_files($dir_now);
  28. ?>
  29. </div>
Advertisement
Add Comment
Please, Sign In to add comment