|
-
Sep 15th, 2007, 10:17 PM
#3
Thread Starter
Frenzied Member
Re: Help parsing artist,songname and image url from remote html
 Originally Posted by The Hobo
What do you mean the HTML is dynamic and changes? Do you mean the bold values change, or does the actual page HTML change?
If the HTML changes each time, there is no way you can write code to parse it.
If the HTML is constant, you could use preg_match() to find instances of /static/artists/(.*).jpg and (.*)<br />"(.*)" to extract those data elements, assuming no other text in the HTML matches these patterns.
Thanks for your reply. The html is the same only the bold parts changes. so i want the php some how pull that html page and then extract the bold data.But i don't know how to tell php to get that html and then get the bold data for me.Hope some one show me how this can be done.Thanks
Note: the html is in remote server and i have no controle over it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|