$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] .'
';
}
?>
$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] .'
';
}
?>