I have an external web page with information I'd like to capture and place into my own page.
The information is wrapped with the standard <p>...</p> html coding.
There is a consistent pattern of html source code :
<p><b>Title</b>.......<a>Blah</a></p>
I am able to isolate these by using the implode, and eregi functions.
What I'd like to do is only get the first three paragraphs but only the information wrapped by the <b></b><br> and <a></a>.
I'm able to isolate the specific info by using this code:
$data2 = join("", file("http://www.test.com/test.html"));
eregi("<p>(.*)</p>", $data2, $line2);
echo $line2[0];
Any thoughts?