I am building a site and I want to pull the latest threads from a site that archives mailing list discussions.
The threads are on this link:
http://archives.neohapsis.com/archives/bugtraq/2001-12/
I want to pull latest 10 threads from that page and place a link to them from my site much like on this page:
http://www.wiretrip.net/rfp/2/index.asp
(Look for the latest 10 bugtraq threads table near the bottom.I tried contacting the owner of the site to see if he could give me any pointers but did not get an answer.Probably cos the sites on NT)
I have tried doing preg_match_all to look for <li> which if you look at the source code to the neohapsis.com page ,comes before every link but I cant get it to work.
The other thing is that the matching would have to be done from the bottom since the threads are archived from oldest to the new.
Any help appreciated 🙂
I have been trying to work from this code which I found on another site.Its for getting latest files on packetstorm and I thought I could work from it but I have not had any luck:
// Variables:
$number = "15"; // Example: (1-100)
// do not edit anything below this line.
$buffer = implode("", file("neo.html"));
preg_match_all("|(</[>]+>+<a href[>]+>.*</[>]+>+)|U",$buffer,$out,PREG_PATTERN_ORDER);
$i = 0;
for ($i = 0; $i < $number + 0; $i++){
echo "{$out[1][$i]}<br>\n";
}
?>