hello...I've taken over an old site to look after; which has 1000's of html links (no I'm not exagerating)
these pages are like index_a.html, index_b.html & on those pages are hundreds of links to documents stored in another folder.
I'm trying to retrieve the list of links from the index pages; display them on a page with pagination (700+ links is a lot of scolling)
This however is as far as I've got ( after many hours of searching)
$fcontents = file( 'http://localhost/harriet/harriet/public/index_author_o.html' );
while ( list( , $line ) = each( $fcontents ) ) {
while ( eregi(
'(href[[:space:]]*=[[:space:]]*"?[[:alnum:]:@/._-]+"?)(.*)', $line,
$regs ) ) {
echo "Got '$regs[1]'<br>\n";
$line = $regs[2];
}
}
this outputs as :
Got 'href="review/moon_boy"'
Got 'href="review/the_agree"'
Got 'href="review/sword_of_oban"'
etc...omiited the remaining links ...lol
whereas what I need to display is
<a href="review/dining_with_devils">DINING WITH DEVILS</A> by Gordon Smith<BR>'
as a normal html link
Bookmarks