Application Architecture : Miscellaneous
check dir then include the file
Submitted By: ayenDate: 02/14/02 17:53
here some code that im using when there is to many include file...normaly i put this thing on index.php
if(!ereg('^\.|html|LOG|test',$file))
this section handle the file that you dont want to include on it
$dirlist = opendir("dirname");
while($file=readdir($dirlist)) {
if(!ereg('^\.|html|LOG|test',$file))
{
$mods = substr($file,0,strlen($file));
include($mods);
//echo $mods;
}
}
closedir();
}
| Comments: | ||
| How about this instead? | Figment | 08/12/02 17:20 |
| RE: check dir then include the file | ayen | 04/15/02 21:54 |
| RE: check dir then include the file | phil | 04/10/02 10:03 |
| RE: check dir then include the file | ayen | 03/20/02 10:33 |
| check dir then include the file | Toni Rose MIra | 03/18/02 23:50 |
| Code For download | Toni Rose MIra | 03/18/02 23:47 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||

