PHP执行文件夹中的所有文件

Im working on a PHP script that is executing chosen website projects. (Only on my local computer).

What i would want it to do is execute ALL files it can find in a folder. It would take time to always change the code when i add a, for example, .php file or .css file.

Im using windows 7.

Is it possible somehow?

Code so far:

exec("C:\\xampp\\htdocs\\project\\",$output, $return);
foreach (glob("path/ToFile/*.php") as $filename) {
    exec($filename, $output); // previously $Filename
}

Perhaps this might perform the task you require

foreach (glob("path/ToFile/*.php") as $filename) {
 echo $filename."<br>";
}

See if you are getting any files