为什么我在百度空间的相片不能贴到别的论坛上去的?
来源:百度知道 编辑:UC知道 时间:2024/09/28 12:04:04
因为百度空间的图片是内联的,所谓内联就是在百度里面可以看到,离开百度去其他网站就看不到了。
解决内联的方法有两种,去我的博客看看,刚找到的
http://hi.baidu.com/huanhai1983hh/blog/item/d1aeecfe4c037a315c6008e7.html
/** * 百度空间相册图片防盗链引用程序 - PHP版 * * 使用方法: * * http://yourdomain/frivoller.php?url= * * @author verdana * @version 1.0 * @since July 16, 2006 */ Class Frivoller { /** * The HTTP Version (1.0, 1.1) , Baidu use version 1.1 * * @var string */ protected $version; /** * The HTTP response body * * @var string */ protected $body; /** * The HTTP URL * * @var string */ protected $link; /** * An array that containing any of the various components of the URL. * * @var array */ protected $components; /** * The HTTP host *