i have a php script that lists the files
<?php
// Note that !== did not exist until 4.0.0-RC2
if ($handle = opendir('.')) {
echo "Directory handle: $handle <br>";
echo "Files: <br>";
/* This is the correct way to loop over the directory. */
while (false !== ($file = readdir($handle))) {
if(stristr($file, 'test_') !== FALSE){
echo "<a href=\"$file\n\">$name\n</a><br>";
include($file);
}
}
closedir($handle);
}
?>
and $name is defined in the included file but it does not show
eg
phpbb in their admin panel it has a list of files
and you can add files in the folder and you put the categoryname and name in a $module array how do i do this