PHP2008. 10. 11. 23:05
$folder = './pg/';
$string = '그림자';

$filelist = array();
if ($handle = opendir($folder)) {
while (false !== ($file = readdir($handle))) {
if(strpos($folder.$file,'.php')) $filelist[] = $file;
}
closedir($handle);
}

for($i = 0; $i < count($filelist); $i++)
{
$aa = file_get_contents($folder.$filelist[$i]);
if(strpos($aa,$string)) echo $filelist[$i] .'
';
}
?>
Posted by 아마데우스