Jump to content

Pulling Image Source from HTML


r0nd3L

Recommended Posts

Hi,

 

I haven't done PHP in a while and never got around to learning string matching patterns and what not.

 

What I'm trying to do, is use preg to pull out an img src from HTML website.  This proves rather hard as there are a lot of images and I need specific one.  What helps is that the image all the time ends in pgallery.jpg, so that's something I need to fish for.

 

Here is a sample IMG src from a website: 

 

<img src="image.php?i=2091_paugust/2091_pgallery.jpg" id="i_vv4-35" height="300" width="300">

 

Is this even possible to do?  Thanks!

Link to comment
https://forums.phpfreaks.com/topic/173721-pulling-image-source-from-html/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.