Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-28-2007, 04:40 AM   PM User | #1
thekevin07
Regular Coder

 
Join Date: Dec 2006
Posts: 182
Thanks: 17
Thanked 0 Times in 0 Posts
thekevin07 is an unknown quantity at this point
Get the contents of src in an img tag

Does anyone know how to get the contents of src in an image tag like for example:
Code:
<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

Last edited by thekevin07; 10-28-2007 at 07:38 AM..
thekevin07 is offline   Reply With Quote
Old 10-29-2007, 02:53 PM   PM User | #2
eak
Regular Coder

 
eak's Avatar
 
Join Date: Jun 2002
Location: Nashville, TN
Posts: 354
Thanks: 0
Thanked 26 Times in 26 Posts
eak is on a distinguished road
You could use preg_match.

How are you with regular expressions?
__________________
eak | "Doing a good deed is like wetting your pants; every one can see the results, but only you can feel the warmth."
eak is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:31 AM.


Advertisement
Log in to turn off these ads.