Image

Imagejosienutter wrote in Imagephp_dev 😦busy

Parse an external webpage as text and return a specific string?

Hi! I'm just starting to barely delve into the world that is PHP CURL functions and I'm having a bit of a time figuring out where to start with this. Specifically, what I want to do is this:

1. Parse this webpage as text.
2. Search for the string "Members: ".
3. Grab the 4-character string of numbers directly afterwards (however many characters later determined by how the page is grabbed-- with HTML tags or without).

Can anyone give me a few pointers? Thanks in advance. :)

(I've emailed Yahoo in the past asking about easier ways to retrieve this info --XML feeds or some such-- and as was expected, never got an answer.)


Thank you, Isaac!