2011-09-30 51 views
0

我正在使用TimThumb脚本(http://code.google.com/p/timthumb/)。我的图片链接是这样产生的:http://website.com/pics/nature/animals/bear.png这个效果很好,但我似乎无法像这样使用TimThumb:http://website.com/resize.php?src=http://website.com/pics/nature/animals/bear.png&h=150&w=150,它说Could not find the internal image you specified。我相信这是因为我的图像是通过slu names名称(bear.png)从文件夹中提取的。该文件夹的图像是通过图像的ID命名的,所以服务器上没有bear.png,我的应用程序使用slug搜索数据库并显示图像的真实名称,但它将图像加载到此链接上:http://website.com/pics/nature/animals/bear.png 。如果我给我的resize.php脚本从flickr链接它很好。TimThumb与来自非公用文件夹或虚拟文件夹的图片一起使用

顺便说一句,resize.php是实际的TimThumb脚本。

任何想法?谢谢 !

回答

0

不要使用本地路径,请输入timthumb的完整URL,就像您使用flickr