1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Script or software to find keywords in url and find your search engine ranking

Discussion in 'Products & Tools' started by josephfrancis, Feb 3, 2007.

  1. #1
    Hello everyone,

    I am looking for a software program or a php script that searches your website finds your web pages and uses the web page extension as the keyword (example - www.mysite.com/my-page.html) in this case my page being the keyword then the script or program checks where your pages rank in Google, Live, Ask, Yahoo and other powerful search engines for that keyword.

    Basically the program or script spiders the website finds all of the pages then generates the keywords going by the extension (as per example above) then finds your ranking.
    SEMrush

    Any help would be appreciated.

    Thanks

    Joseph
     
    josephfrancis, Feb 3, 2007 IP
    SEMrush
  2. mehreeizad

    mehreeizad Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi josephfrancis,
    You can use this code, I have find it form codingforums.com for you:

    This is a code that will store the keyword a person used on google to find your site:
    
    <?php
    
    // Get The URL and use parse_url to get an array of info about it
     $url = parse_url($_SERVER['HTTP_REFERER']);
    
    //If  from Google Get query & Keywords
    if ($url['host'] == 'www.google.com')
    {
        
        $query = $url['query'];
        $param_array = explode('&',$query);
        foreach ($param_array as $param)
        {
            if ($param{0} == 'q') // if first char is q, it's your google query.
    
            {
                $word_string = substr($param, 2); // strip 'q='
            }
        }
        $word_string = str_replace('"', '', urldecode($word_string));
    
        $words = explode(' ', $word_string);
    
        echo "<pre>\n";
        print_r($words);
        echo "</pre>\n";
    } else //If not from google tell them so
    {
        echo "you are not coming from google";
    }
    
    ?> 
    
    Code (markup):
    I hope this code can help you
     
    mehreeizad, May 15, 2008 IP
  3. davidtl99

    davidtl99 Active Member

    Messages:
    60
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    95
    #3
    Thanks for the code!
     
    davidtl99, Jun 10, 2008 IP
  4. kewlchat

    kewlchat Well-Known Member

    Messages:
    1,779
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    110
    #4
    nice snippet i may make use of it :)
     
    kewlchat, Jun 10, 2008 IP
  5. josephfrancis

    josephfrancis Member

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #5
    Thanks for the code
     
    josephfrancis, Jun 10, 2008 IP
  6. nifrou

    nifrou Active Member

    Messages:
    244
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    80
    #6
    nifrou, Jun 11, 2008 IP
  7. shoaeeb

    shoaeeb Peon

    Messages:
    165
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You may use website www.selfseo.com. They offer some tools like this you want.
     
    shoaeeb, Jul 23, 2008 IP
  8. indigobean2003

    indigobean2003 Active Member

    Messages:
    225
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #8
    Thanks for code, I am going to try and work it into an application that I am building.
     
    indigobean2003, Jul 28, 2008 IP
  9. himarket.co.cc

    himarket.co.cc Peon

    Messages:
    128
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    where to put this code in Vbulletin forums ???
     
    himarket.co.cc, Jun 8, 2009 IP