开发者

phpThumb plugin and database images' querystrings

开发者 https://www.devze.com 2023-02-06 22:26 出处:网络
i\'m new to the phpthumb plugin and searched s开发者_运维百科tackoverflow for similar questions without success

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

精彩评论

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

关注公众号