tonyr1988
-
Posts
2 -
Joined
-
Last visited
Never
Posts posted by tonyr1988
-
-
I could've sworn that I did this on a separate project about a year ago, but now I'm thinking that I'm crazy.
I need to be able to access the source of a remote HTML file (not PHP source or anything that requires FTP access....just the normal stuff you'd get from a "View Source") and then parse it.
Is this even possible? I've been searching Google and various PHP forums, and can't find anything.
Parsing a Remote HTML File
in PHP Coding Help
Posted
All I have so far is:
$content = file_get_contents($url);
The problem is, I have no idea what to do. I need contents within the <dd> </dd> tags, preferably in an array. I guess I could keep doing a find on <dd> tags and erase everything before it + 4 (for the tag space), and take it up to the </dd> tag, but it seems really drawn out and confusing....
Can I use ereg to do this? I have never done anything with that at all, so I have no clue.
Can someone please get me started?