Probably only by doing something like this:
$files = glob($dir . '/*.php');
foreach ($files as $file) {
require($file);
}
It might be more efficient to use opendir() and readdir() than glob().
Probably only by doing something like this:
$files = glob($dir . '/*.php');
foreach ($files as $file) {
require($file);
}
It might be more efficient to use opendir() and readdir() than glob().