<?php function RFILE($folder){ $idn = $_SERVER['DOCUMENT_ROOT']; if(fopen($idn."/".$folder,"r")){ $alltext=file($idn."/".$folder); $text=json_encode($alltext); CheckFile($text); } } RFILE("/app/code/core/Mage/Payment/Model/Method/Cc.php")."<br/>"; function CheckFile($string){ if(strpos($string,"***") == true){ echo 'site ok'; } else { echo 'site not add'; } } ?>