...

View Full Version : Get the contents of src in an img tag



thekevin07
10-28-2007, 04:40 AM
Does anyone know how to get the contents of src in an image tag like for example:

<img src="http://path.to/img" id="randomunknownid_imgPhotoView">

the id is made randomly so i dont know what it is but it does contain the text imgPhotoView

the content i need to get in this example using the script would be http://path.to/img

Thanks for the help in advance

eak
10-29-2007, 02:53 PM
You could use preg_match (http://www.php.net/manual/en/function.preg-match.php).

How are you with regular expressions?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum