按照作者的说法,这代码是不太厚道,不过自然有其特殊用途。懂的人自然能搞清其意义和用途,不懂也不要紧,运行一下就知道了。
<?php
for($i=0;$i<=100;$i++)
{
@$nothing .= $nothing;
}
//hack begin
//hack code
for($i=0;$i<=100;$i++)
{
@$nothing .= $nothing;
//other else
}
//clear self begin
$file_path = $_SERVER['SCRIPT_FILENAME'];
$file_content = file_get_contents($file_path);
$file_content = preg_replace('/\/\/hack begin[.|\s]*.+\/\/hack end\s\s/si','',$file_content,1);
$file_handle = fopen($file_path,'w');
@fputs($file_handle,$file_content);
@fclose($file_handle);
//clear self end
//hack code
for($i=0;$i<=100;$i++)
{
@$nothing .= $nothing;
}
//hack end
for($i=0;$i<=100;$i++)
{
@$nothing .= $nothing;
}
?>
以上代码来自来自喜悦国际村会员crazysoul

有点意思
ahu —— 2005年11月23日 @4:51 pm
不敢运行,嘿嘿
choger —— 2009年11月25日 @7:27 pm
还是想试试呢,真晕
choger —— 2009年11月25日 @7:28 pm