first attempt at parsing data here s what I need todo.
A page of html on another site, has an img tag I need the src from and then a large chunk of HTML formatted text. I've disceted the code and know exactly where I want to read from.
the <img> tag occurs right after a <p align=center> tag. I need the src from there. then after that there is 2,3 or 4 paragraphs of text I want to take as well. So I want to read all the text from the end of the <img> tag until there is 2 <br> tags side by side...
i.e. <br><br>
I know howto open the stream...with fopen() but not sure what to do with it...I could read the whole thing into a string then parse it??? with file_get_contents()....
I need some direction, and also help with what functions I use to read to a certain point then begin to caputre the text etc.
also how can I read a large chunk of text rather then just a line with fgets()???
This is info I'm taking from a parent website on an Affiliate webpage that can be used by all partners...but they don't offer it in any user firendly format! Thanks in advance !