Create a list of links
| From: | Lauri Vain | Date: | Wed, 17 Oct 2001 20:00:10 +0000 |
| Subject: | Create a list of links | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-71405@lists.php.net to get a copy of this message | ||
Hello all,
I need a script that would find all the links (both -- web sites and mail
addresses) on a given page with the link text.
Basically the thing would work as the following. Jane goes to a page and types a
URL in a input text box, for example www.mytextandlinks.com. Then the script
would find all the links (both -- link targets and the link text, that is the
text between <a> and </a>). The found links would be written to an array or into
a string.
Then, some action can be executed with the list of these links and link text's.
With the uttermost probability, somebody has written such a script. Can somebody
help?
TIA
Yours,
Lauri