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.

[PHP] Check if link is on a page

2007-02-24 Thread Wikus Möller
Hi. I need some help with checking if a certain link is on a page (e.g. check if http://yahoo.com is on http://google.com/index.php ) Please help me to get the web page and to perform a string match on the web page. Thanks *Still learning* -- PHP General Mailing List (http://www.php.net/) To u