Re: [PHP] Check if link is on a page

2007-02-24 Thread tedd
At 11:49 AM + 2/24/07, Wikus Möller wrote: Ok, thanks. That should do it. By the way, which letter should be used for what at the fopen like you used an 'r'. Is there an online reference that lists this? Because I couldn't find it at php.net Thanks Really? Just enter "fopen" in the "sear

Re: [PHP] Check if link is on a page

2007-02-24 Thread Wikus Möller
Ok, thanks. That should do it. By the way, which letter should be used for what at the fopen like you used an 'r'. Is there an online reference that lists this? Because I couldn't find it at php.net Thanks On 2/24/07, Dave Goodchild <[EMAIL PROTECTED]> wrote: $web = fopen('http://google.com/in

Re: [PHP] Check if link is on a page

2007-02-24 Thread Dave Goodchild
$web = fopen('http://google.com/index.php', 'r'); $contents = file_get_contents($web); if (preg_match('/$link/', $contents))... you got it simplified and no error checking but you get the idea.