Re: List all links from a webpage
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: List all links from a webpage

From: Robertico <Robertico@nomail.notvalid>
Date: Sat Sep 03 2005 - 17:11:45 CEST

Thanks,

> <?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>";
> ?>

Great solution using Lynx. My first impression is that it works great !

Robertico
Received on Mon Oct 24 02:09:45 2005