Jump to content

Recommended Posts

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)
Link to comment
https://forums.phpfreaks.com/topic/7152-somebody-help-me-with-images/
Share on other sites

[!--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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.