SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    The Jellophonic Autobrain CHeeSeBLiND's Avatar
    Join Date
    Jul 2001
    Location
    Bolton, England
    Posts
    584
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    finding your link on someone elses site.

    right, im currently working on a links script.

    What i want to be able to do is search a page on someones site to see if a link to my site is present, if not, there link is removed from the database.

    can someone give me the code to see if a link is shown in another sites source?
    hmm...

  2. #2
    The short answer is yes... Herbster's Avatar
    Join Date
    Oct 2001
    Location
    Bay City, Oregon
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
     $filename "[url=http://www.somesite.com/links.html]http://www.somesite.com/links.html[/url]";
    $fp fopen ($filename"r" );
    $Page fread ($fp1000000);
    fclose($fp);

    if (
    strpos($Page"mysite.com" )){
    echo 
    "Link exists.";
    }
    else{
    echo 
    "No link found.";

    This editor so totally sux...
    The HTML doesn't belong...
    Last edited by Herbster; Jun 4, 2003 at 19:12.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •