开发者

phpThumb plugin and database images' querystrings

i'm new to the phpthumb plugin and searched s开发者_运维百科tackoverflow for similar questions without success

a standard phpthumb request should be like this

<img src="phpthumb/phpThumb.php?src=../RANDOM-IMAGE.gif&w=100&q=100" />

What if my image is coming from a mysql db and its url is a querystring?

<img src="http://www.somewebsite.com/gallery.php?img=PARAM1&id=PARAM2" />')

How can i generate thumbnails with phpthumb plugin with url like these?


I solved this way

$imageTempURL=rawurlencode("http://www.somewebsite.com/gallery.php?img=imageID");


echo('<img src="phpthumb/phpThumb.php?src='.$imageTempURL);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜