按照作者的说法,这代码是不太厚道,不过自然有其特殊用途。懂的人自然能搞清其意义和用途,不懂也不要紧,运行一下就知道了。

<?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


3条评论

  1. 有点意思

  2. 不敢运行,嘿嘿

  3. 还是想试试呢,真晕

发表评论

评论也有版权!

click to change验证码