here some code that im using when there is to many include file…normaly i put this thing on index.php
$dirlist = opendir("dirname"); while($file=readdir($dirlist)) { if(!ereg('^.|html|LOG|test',$file)) { $mods = substr($file,0,strlen($file)); include($mods); //echo $mods; } } closedir(); }
if(!ereg(‘^.|html|LOG|test‘,$file))
this section handle the file that you dont want to include on it