I have saw a url like http://www.example.com/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/0 visit it then I can get a image how it works? and how can I get boundary of that image use curl with php?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
What do you mean by getting an image by that URL? You need to rewrite the URL with htaccess and intercept it somehow using PHP and loading the file from somewhere.
Once you have the image you can get any info you want to from it.
- Rewrite URL with mod_rewrite (i.e.: domain.com/23234234/0 to domain.com?id=23234234&nr=0)
- Make a call to the database requesting the file with id 23234234
- Show it to the user changing the content-type of the file you are showing
Is it what are you looking for?