2006-03-13, 06:08 PM
|
#3
|
注册日期: 2003-10-22
帖子: 11,051
积分:6
精华:24
现金:14342金币
资产:29325299金币
|
PHP的版本
PHP 代码:
<?php //远程调用163相册图片 //http://blog.cnstorm.com //Ian.Lee //2006-3-5 $p=$_GET["p"]; if(!preg_match("/http:\/\/img([0-9]+).photo.163.com\/([a-z0-9_-]+)\/([0-9]+)\/([0-9]+).(gif|jpg)/i",$p))exit();//这个正则你可以替换下 if (substr($p,-4)==".jpg") {header("Content-type: image/jpeg\n\n");} else {header("Content-type: image/gif\n\n");} @readfile($p); ?>
|
|
|
|