timthumb在图像src中重定向到404

时间:2016-03-14 09:08:21

标签: php html timthumb

我在我的网站上使用timthumb,它在现场工作正常....

它出乎意料地停止了我的localhost .. src to img如下所示....

当我在新标签页中打开时它会打开...但不会显示在当前页面中...

<img src="http://demo_site/thumb/?src=http://demo_site/uploads/albumcoverphoto/0f5679c495cb3ee55eedf7426b2dc554.jpg&amp;h=131&amp;w=132">

当我尝试将此src更改为低于1时...它也给出了404

<img src="http://demo_site/thumb/">

新标签中的相同网址正常。

任何帮助表示赞赏..

1 个答案:

答案 0 :(得分:0)

您没有加载timthumb.php文件,请使用代码

<img src="http://demo_site/thumb/timthumb.php?src=http://demo_site/uploads/albumcoverphoto/0f5679c495cb3ee55eedf7426b2dc554.jpg&amp;h=131&amp;w=132">