TimThumb生成站外缩略图出错

  • A+
所属分类:教程

TimThumb生成站外缩略图出错

A TimThumb error has occured

The following error(s) occured:
You may not fetch images from that site. To enable this site in timthumb, you can either add it to $ALLOWED_SITES and set ALLOW_EXTERNAL=true. Or you can set ALLOW_ALL_EXTERNAL_SITES=true, depending on your security needs.

Query String : w=90&h=90&src=http://www.williamlong.info/upload/3275_1.jpg
TimThumb version : 2.8.6

用timthumb生成站外缩略图出现以上提示,按照提示的办法解决即可:

编辑timthumb.php,找到ALLOW_ALL_EXTERNAL_SITES,把值改为ture即可

weinxin
我的微信
这是我的微信扫一扫

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: