Parsing an HTML page using PHP
| From: | Sheni R. Meledath | Date: | Mon, 05 Nov 2001 15:17:31 +0000 |
| Subject: | Parsing an HTML page using PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-73494@lists.php.net to get a copy of this message | ||
Hello:
Can anybody suggest me a logic to develop a PHP script to parse an html page on another site to extract the news and display it on my site.
Details:
http://www.othersite.com/news.htm
This page has got some news items. All news titles are listed using bullet points (<UL><LI><A HREF="newslink1.htm">News 1</A></LI></UL>
I have to extract the news titles and the links from this page and display it on my page. The reason is the news page is frequently updated and instead of updating my page every time, if I write a script then my page also will be automatically updated everytime.
Many thanks
Sheni R Meledath
sheni@cyber-gear.com