Re: [PHP] Extracting hyperlinks from file

2002-02-21 Thread DL Neil
Ando > I need to produce an array of all the links(hrefs) in a remote file > (actually those that refer to files in the same remote server, but thats > > another matter). > I'm pretty new to php, i was thinking of doing it with ereg, something > like eregi("a href[\"]?=(.*)>", $file, $link); > bu

[PHP] Extracting hyperlinks from file

2002-02-21 Thread Ando Saabas
I need to produce an array of all the links(hrefs) in a remote file (actually those that refer to files in the same remote server, but thats another matter). I'm pretty new to php, i was thinking of doing it with ereg, somethin like eregi("a href[\"]?=(.*)>", $file, $link); but i cannot think of

Re: [PHP] Extracting hyperlinks from file

2002-02-21 Thread Andrey Hristov
ooops sorry The correct is : preg_match_all('/ To: "Ando Saabas" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, February 21, 2002 1:35 PM Subject: Re: [PHP] Extracting hyperlinks from file > Use preg_match_all('| var_dump($the_match

Re: [PHP] Extracting hyperlinks from file

2002-02-21 Thread Andrey Hristov
Use preg_match_all('| To: <[EMAIL PROTECTED]> Sent: Wednesday, February 20, 2002 10:45 PM Subject: [PHP] Extracting hyperlinks from file > I need to produce an array of all the links(hrefs) in a remote file > (actually those that refer to files in the same remote server, but t

[PHP] Extracting hyperlinks from file

2002-02-21 Thread Ando
I need to produce an array of all the links(hrefs) in a remote file (actually those that refer to files in the same remote server, but thats another matter). I'm pretty new to php, i was thinking of doing it with ereg, something like eregi("a href[\"]?=(.*)>", $file, $link); but i cannot think of

[PHP] Extracting hyperlinks from file

2002-02-21 Thread Ando Saabas
I need to produce an array of all the links(hrefs) in a remote file (actually those that refer to files in the same remote server, but thats another matter). I'm pretty new to php, i was thinking of doing it with ereg, something like eregi("a href[\"]?=(.*)>", $file, $link); but i cannot think of