Re: Check if link is on a page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <buddhamagnet@xxxxxxxxx> wrote:
$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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux