色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

php 清除網頁病毒的方法

<?php
Class clear_virus{
public $index ='b.html';
public $filepath =array('b.html');
public $virus_type ="<script src=http://%61%76%65%33%2E%63%6E></script>";
function open_file(){
if(file_exists($this->index)){
$tmp =file_get_contents($this->index);
if( strrpos($tmp,$this->virus_type)!== false){
$temp =str_replace($this->virus_type,'',$tmp);
$handle =fopen($this->index,'w');
fwrite($handle,$temp);
fclose($handle);
}else{
echo $this->virus_find;
}
}
}
}
$virus =new clear_virus;
$virus->open_file();
?>
清除script 病毒

php技術php 清除網頁病毒的方法,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 边坝县| 额济纳旗| 德清县| 怀化市| 淮安市| 禄丰县| 永胜县| 和龙市| 淮安市| 肥乡县| 家居| 新宁县| 阳新县| 郧西县| 彭州市| 灌云县| 陆川县| 普洱| 嵊泗县| 青阳县| 大竹县| 天柱县| 喜德县| 军事| 西吉县| 安图县| 安宁市| 阳信县| 互助| 册亨县| 南平市| 天津市| 雅江县| 红桥区| 正蓝旗| 专栏| 漳州市| 泗阳县| 天柱县| 台山市| 广元市|