Re: Reminder or answer to check if remote page is linking to you
| From: | Mag | Date: | Wed, 15 Sep 2004 00:16:22 +0000 |
| Subject: | Re: Reminder or answer to check if remote page is linking to you | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196673@lists.php.net to get a copy of this message | ||
> > I have been searching the archives for the past 2
> > hours without luck, I am looking for an older
> thread
> > which was discussed on how to connect to a remote
> page
> > and check if that page was linking back to
> blah.com, I
> > think it was done via fopen.
> >
> > If you can tell me either,
> > 1. the name of that thread or its url
> > 2. how to do the above check
> > I would really appreciate it.
>
> $page =
> file_get_contents('http://example.org/page.html');
>
> Now use the string functions to search $page for a
> "href" back to your site.
> Not foolproof, but then nothing is.
>
> ---John Holmes...
Hello John,
Thanx for replying.
I figured the part that you sent me by myself, but I
dont know the regex/string functions used to "read"
the href...any ideas?
Thanks,
Mag
=====
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com