| 
	
 | 
 Posted by Toby Inkster on 09/03/05 17:14 
Robertico wrote: 
 
> I'd like to list all links (url's, not interested in email adresses) from a  
> web page (htm, html, asp, php ...). 
 
<?php 
        $url = 'http://tobyinkster.co.uk'; 
        $n = 12 + strlen(`lynx -dump -number_links -nolist '$url'`); 
        $list = substr(`lynx -dump -number_links '$url'`, $n); 
        print "<pre>$list</pre>"; 
?> 
 
Magic. 
 
--  
Toby A Inkster BSc (Hons) ARCS 
Contact Me  ~ http://tobyinkster.co.uk/contact
 
  
Navigation:
[Reply to this message] 
 |