Directory listing using php - Php

Directory listing

Snippet Code


  
Rate this page :
  [ 0 votes]

uncomment "to use" and provide appropriate folder to list its contents using php

<?php function list_files($dir) { if(is_dir($dir)) { if($handle = opendir($dir)) { while(($file = readdir($handle)) !== false) { if($file != "."

Tags


Ask Questions

Ask Question