[phplib] Extracting links from a HTML File From: Pankaj Gupta (pankajg <email protected>)
Date: 10/20/00

This question is not a phplib question. Sorry for that but does any one
know how can I do this:
I want to have a function get_links which does the following:
it takes as argument the url and returns two arrays urls and emails . The
array urls contains complete list of links found in that file
(http://www.../file.htm or relative links abdc/ahdg.html). The array emails
contains complete list of email addresses found in that file.
I am trying to write an email extractor. Please keep the code you provide
small and simple. I don't want too much extra functionality.
get_links(String url_to_be_parsed)
fills global two arrays
$URLS
$EMAILS
It should be easy I guess. I am just a new hander on PHP.
I have apache and PHP 3.0.12
fopen can directly wrap urls on my system so please use fopen and likes (Do
not use sockets to open the urls)
Thanks
Ragards,
Pankaj

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>