how to get all file name from folder in php code example Example: php get all php files in a directory foreach(glob('includes/*.php') as $file) { ... }