如何判断文件内容删除,采用file_get_contents获取文件内容并转化为一个字符串,然后strstr判断是否为空即可。
$filecontent = file_get_contents('domain.php');
if (strstr($filecontent, '保哥后院') == "") {
die ('请尊重版权');
}
如何判断文件内容删除,采用file_get_contents获取文件内容并转化为一个字符串,然后strstr判断是否为空即可。
$filecontent = file_get_contents('domain.php');
if (strstr($filecontent, '保哥后院') == "") {
die ('请尊重版权');
}
微信扫码登录