angelherriv Posted April 11, 2006 Share Posted April 11, 2006 Hello, I would like to know if is possible to filter an image from a web page using PHP. For example, exist a web page that each time you go there, it generates an image, with a different name each time, but always in the same location etc., can i retrieve that image and show it on my php web site as I like or get the URL of that image?, if you know something, please tell me how, thanks. (sorry my english) Quote Link to comment Share on other sites More sharing options...
mystxx Posted April 12, 2006 Share Posted April 12, 2006 [!--quoteo(post=363834:date=Apr 11 2006, 06:06 PM:name=angelherriv)--][div class=\'quotetop\']QUOTE(angelherriv @ Apr 11 2006, 06:06 PM) [snapback]363834[/snapback][/div][div class=\'quotemain\'][!--quotec--]Hello, I would like to know if is possible to filter an image from a web page using PHP. For example, exist a web page that each time you go there, it generates an image, with a different name each time, but always in the same location etc., can i retrieve that image and show it on my php web site as I like or get the URL of that image?, if you know something, please tell me how, thanks. (sorry my english)[/quote]Hi.This is often doable using regexp. You connect to the site, download complete html, then via regexp extract only IMG tags. From there you can get the location and then download or display on your site. You should check for copyrights in these cases. Hope this helps. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.