I have a page with urls with descriptions listed one under another (something like bookmarks/list of sites). How do I use php to get all urls from that page and write them t
one way
$url="http://wwww.somewhere.com";
$data=file_get_contents($url);
$data = strip_tags($data,"");
$d = preg_split("/<\/a>/",$data);
foreach ( $d as $k=>$u ){
if( strpos($u, "