AngryPenguin
09-01-2007, 05:45 AM
Hi all, I'm trying to search a page for links and put the links into an array. Is there a specific function for doing this, or do I have to search for '<a href="' then read the link in.
I'm thinking of something like this:
$file = fopen("links.html","r");
while (!feof($file))
{
// get line from file
// check if it's a link
// put link into array
}
fclose($file);
Thanks very much if you can help.
Andy
I'm thinking of something like this:
$file = fopen("links.html","r");
while (!feof($file))
{
// get line from file
// check if it's a link
// put link into array
}
fclose($file);
Thanks very much if you can help.
Andy