note 7651 deleted from strip_tags by ronabop

From: Date: Fri, 11 Aug 2000 15:52:10 +0000
Subject: note 7651 deleted from strip_tags by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-1216@lists.php.net to get a copy of this message
Is there a way to grab the "href" from a link on a webpage? When I use the 'file' function to grab the web page, I can strip all the html except for the <a> tags - to produce the link, but it seems that I can only grab the link itself or the link text. I need to know what the actual link source is. example: the html source: <A HREF="/mydomian.domain/cgi-bin/page.htm">The Link</A> I can either grab the text: The Link or the actual link of: The Link I want: /mydomain.domain/cgi-bin/page.htm Can anyone help me out here?

« previous php.notes (#1216) next »