rep
// directory path can be either absolute or relative $dirPath = ‘/rep’; // open the specified directory and check if it’s opened successfully if ($handle = opendir($dirPath)) { // keep reading the directory entries ’til the end while (false !== ($file = readdir($handle))) { // just skip the reference to current and parent directory if Read more about rep[…]