$file_included = get_included_files(); foreach($file_included as $val) { if(preg_match('/YOUR STRING HERE/',file_get_contents($val))){ echo $val.' '; }
$file_included = get_included_files(); foreach($file_included as $val) { if(preg_match('/YOUR STRING HERE/',file_get_contents($val))){ echo $val.'
'; }
}
i think this only search parth of the included filename not the content
yes, thanks fo the correction. there should be a file get contents that will read the looped file
i think this only search parth of the included filename not the content
ReplyDeleteyes, thanks fo the correction. there should be a file get contents that will read the looped file
ReplyDelete