Php timthump如何与querystring url一起使用

Php timthump如何与querystring url一起使用,php,javascript,css,image,Php,Javascript,Css,Image,我正在使用timthump.php,它使用起来非常方便,但我们使用它的问题是,我们不能提供标准的图像位置url 在我们的情况下,我们将图像保存在数据库中,然后我设计了一个php页面,从查询字符串中读取id或名称,然后将图像作为响应呈现。无论何时我们需要得到图像,我们都使用 getmemberimg.php?id=1 而timthumb语法看起来是这样的 timthumb.php?src=image.jpeg 或 现在当我把我的url写为 timthumb.php?src=getmemberi

我正在使用timthump.php,它使用起来非常方便,但我们使用它的问题是,我们不能提供标准的图像位置url

在我们的情况下,我们将图像保存在数据库中,然后我设计了一个php页面,从查询字符串中读取id或名称,然后将图像作为响应呈现。无论何时我们需要得到图像,我们都使用

getmemberimg.php?id=1
而timthumb语法看起来是这样的

timthumb.php?src=image.jpeg

现在当我把我的url写为

timthumb.php?src=getmemberimg.php?id=1
timthumb.php?src=https://mysite.com/getmemberimg.php?id=1
这不起作用,返回错误


如何克服这个问题?我的问题是如何将我的图像传递到timtumb.php,而我可以使用getmemberimg.php?id=1获取图像

我不知道什么是
timtumb.php
。但是,如果您想获取网页的输出(例如,来自
getmemberimg.php?id=X的图像),可以使用
file\u get\u contents
curl


文件\u获取\u内容:


卷曲:

timthumb.php?src=getmemberimg.php?id=1
timthumb.php?src=https://mysite.com/getmemberimg.php?id=1