Now a lot of network disk has a straight chain function, today saw a network of pictures of the straight-link address, copied to the browser directly downloaded, can not be used as a display
Want to ask, this kind of image straight link address in addition to download can be used to display, if only download, it is useless
Image straight-link addresses are as follows:
Http://pan.plyz.net/d.asp?u=3808477165&p=2.jpg
Reply to discussion (solution)
echo file_get_contents (' http://pan.plyz.net/d.asp?u=3808477165&p=2.jpg ');
This method is not displayed in the Web page.
echo file_get_contents (' http://pan.plyz.net/d.asp?u=3808477165&p=2.jpg ');
This method will prompt
But the SSL module has been opened
What do you need? php? Take the tablets, and then show the place
Demo
pan.php
showimg.php
As far as I know, it looks like the browser content-type the resources.
If it's html,css,js, the picture is directly displayed.
If this is pdf,excel, it is necessary to see whether the browser has a corresponding display plug-in, or directly download
The picture that the net disk gives, Content-type should not be image/jpg
Want to show directly, you write a small page, with the IMG tag wrapped up
But this way, may be rejected by the other side of the firewall, Referer is not in his white list
What do you need? php? Take the tablets, and then show the place
Demo
pan.php
showimg.php
This method is also unable to display, should and 4 floor said, Referer not in his white list, but still want to thank everyone's answer