Now many of the website and forum pictures are using anti-theft chain technology, since there are anti-theft chain, then there must be a way to crack the anti-theft chain, the following small series to provide you with a crack anti-theft chain image PHP function. But only JPG and GIF support, if you want to support a variety of graphic format, you can make the next change.
$url =$_get[' url '];
$ext =pathinfo ($url, pathinfo_extension);
if ($ext! = ' jpg ' && $ext! = ' gif ') {//only JPG and GIF supported
ReadFile ('/upload/20081209130557536.gif ');
Exit
}
$file =md5 ($url). $ext;
if (file_exists ($file)) {
ReadFile ($file);
Exit
}else{
$data =file_get_contents ($url);
if (! $data) {//Read failed
ReadFile ('/upload/20081209130557536.gif ');
Exit
}
$handle =fopen ($file, ' WB ');
Fwrite ($handle, $data);
Fclose ($handle);
Echo $data;
}
?>
http://www.bkjia.com/PHPjc/371750.html www.bkjia.com true http://www.bkjia.com/PHPjc/371750.html techarticle now many of the website and forum pictures are using anti-theft chain technology, since there are anti-theft chain, then there must be a way to crack the anti-theft chain, the following small series to provide you with a crack anti-theft ...