Get all contents and files in Directory in php

## GET CONTENTS IN A DIRECTORY $theme_contents_allĀ  = array(); $theme_contents_filesĀ  = array(); // Open a directory, and read its contents if (is_dir(MINI_USER_THEME_DIR)){ //check if exists, particular theme folder path if (is_dir( $miniuser_themeid_dir_apath )){ if ($dh = opendir( $miniuser_themeid_dir_apath )){ while (($file = readdir($dh)) !== false){ echo “filename:” . $file . “<br>”; //==== check if it … Read moreGet all contents and files in Directory in php