1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[PHP SCRIPT] Are you searching For Script like Pingler.com ? Try it!

Discussion in 'White Hat SEO' started by khaoss, May 13, 2010.

  1. khaoss

    khaoss Registered Member

    Joined:
    May 10, 2010
    Messages:
    55
    Likes Received:
    19
    Occupation:
    Web Marketing and SEO
    Location:
    Torino
    Hi Friends,

    Today i would like to share with you my personal script that works like Pingler.com.

    I hope that it'll be usefull for you.

    PHP:
    <?php
    if($_POST['q']){
    $site_name $_POST['site_name'];
    if(
    $site_name == ""){
    ?>
    <div class="notification information png_bg"><div>No site Name</div></div>
    <?
        return;
    }

    $site_url_rss="";
    $site_url_rss = $_POST['site_url_rss'];

    /**
     * The URL of your site
     */
    $site_url = $_POST['site_url'];
    if($site_url == ""){
    ?>
    <div class="notification information png_bg"><div>No URL</div></div>
    <?
        return;
    }


    $lista1=$_POST['lista'];
    if($lista1 == ""){
    ?>
    <div class="notification information png_bg"><div>No List Ping</div></div>
    <?
        return;
    }


    $request = <<<EOT
    <?xml version="1.0" encoding="iso-8859-1"?>
    <methodCall>
    <methodName>weblogUpdates.ping</methodName>
    <params>
     <param>
      <value>
       <string>$site_name</string>
      </value>
     </param>
     <param>
      <value>
       <string>$site_url</string>
      </value>
     </param>
       <param>
          <value>
            <string>$site_url_rss</string>
          </value>
        </param>
    </params>
    </methodCall>
    EOT;


    $lista=explode(',',$lista1);

    ?>
    <h3>Pinging <a href="<?=$site_url?>"><?=$site_name?></a></h3>
    <?
    foreach($lista as $server){

        if (!empty($server)){

        $tmp=explode("/",$server,2);

        $ch = curl_init();
               curl_setopt($ch, CURLOPT_URL, "http://".trim($server));             // Target site 
            curl_setopt ($ch, CURLOPT_POSTFIELDS, trim($request)); 
            curl_setopt ($ch, CURLOPT_POST, TRUE);  
        curl_setopt($ch, CURLOPT_TIMEOUT, 5);    // Timeout 
        curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)");   // Webbot name 
        curl_setopt($ch, CURLOPT_REFERER, trim($tmp[0]));            // Referer value 
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);     // Return in string
     
            $return_array = curl_exec($ch); 
     
          curl_close($ch);

        echo $tmp[0].": ".substr(strip_tags($return_array),16)."<br>";

        }
        echo "<br>";
    }
    }else{
    ?>
    <h3>Ping Service:</h3>
    <form id="ping_form" action="" method="POST">
    Web Site Name:<br>
    <input type="text" name="site_name" id="site_name"><br>
    <br>
    Web Site Url:<br>
    <input type="text" name="site_url" id="site_url"><br>
    <br>
    Web Site Url RSS (opzionale):<br>
    <input type="text" name="site_url_rss" id="site_url_rss"><br>
    <br>
    Ping Service:<br>
    <textarea id="lista" name="lista" wrap="off" cols="70" rows="10">
    rpc.technorati.com/rpc/ping,
    api.moreover.com/RPC2,
    api.my.yahoo.co.jp/RPC2,
    api.my.yahoo.com/RPC2,
    audiorpc.weblogs.com/RPC2,
    blog.goo.ne.jp/XMLRPC,
    blogpeople.net/ping,
    blogsearch.google.ae/ping/RPC2,
    blogsearch.google.at/ping/RPC2,
    blogsearch.google.be/ping/RPC2,
    blogsearch.google.bg/ping/RPC2,
    blogsearch.google.ca/ping/RPC2,
    blogsearch.google.ch/ping/RPC2,
    blogsearch.google.cl/ping/RPC2,
    blogsearch.google.co.cr/ping/RPC2,
    blogsearch.google.co.hu/ping/RPC2,
    blogsearch.google.co.id/ping/RPC2,
    blogsearch.google.co.il/ping/RPC2,
    blogsearch.google.co.in/ping/RPC2,
    blogsearch.google.co.it/ping/RPC2,
    blogsearch.google.co.jp/ping/RPC2,
    blogsearch.google.co.ma/ping/RPC2,
    blogsearch.google.co.nz/ping/RPC2,
    blogsearch.google.co.th/ping/RPC2,
    blogsearch.google.co.uk/ping/RPC2,
    blogsearch.google.co.ve/ping/RPC2,
    blogsearch.google.co.za/ping/RPC2,
    blogsearch.google.com.ar/ping/RPC2,
    blogsearch.google.com.au/ping/RPC2,
    blogsearch.google.com.br/ping/RPC2,
    blogsearch.google.com.co/ping/RPC2,
    blogsearch.google.com.do/ping/RPC2,
    blogsearch.google.com.mx/ping/RPC2,
    blogsearch.google.com.my/ping/RPC2,
    blogsearch.google.com.pe/ping/RPC2,
    blogsearch.google.com.sa/ping/RPC2,
    blogsearch.google.com.sg/ping/RPC2,
    blogsearch.google.com.tr/ping/RPC2,
    blogsearch.google.com.tw/ping/RPC2,
    blogsearch.google.com.ua/ping/RPC2,
    blogsearch.google.com.uy/ping/RPC2,
    blogsearch.google.com.vn/ping/RPC2,
    blogsearch.google.com/ping/RPC2,
    blogsearch.google.de/ping/RPC2,
    blogsearch.google.es/ping/RPC2,
    blogsearch.google.fi/ping/RPC2,
    blogsearch.google.fr/ping/RPC2,
    blogsearch.google.gr/ping/RPC2,
    blogsearch.google.hr/ping/RPC2,
    blogsearch.google.ie/ping/RPC2,
    blogsearch.google.in/ping/RPC2,
    blogsearch.google.it/ping/RPC2,
    blogsearch.google.jp/ping/RPC2,
    blogsearch.google.lt/ping/RPC2,
    blogsearch.google.nl/ping/RPC2,
    blogsearch.google.pl/ping/RPC2,
    blogsearch.google.pt/ping/RPC2,
    blogsearch.google.ro/ping/RPC2,
    blogsearch.google.ru/ping/RPC2,
    blogsearch.google.se/ping/RPC2,
    blogsearch.google.sk/ping/RPC2,
    blogsearch.google.tw/ping/RPC2,
    blogsearch.google.us/ping/RPC2,
    feedsky.com/api/RPC2,
    hamo-search.com/ping.php,
    http://blogsearch.google.lv/ping/RPC2,
    ping.blogoon.net/,
    ping.blogs.yandex.ru/RPC2,
    ping.fc2.com/,
    ping.feedburner.com/,
    ping.kutsulog.net/,
    ping.myblog.jp/,
    ping.namaan.net/rpc,
    ping.snap.com/ping/RPC2,
    ping.syndic8.com/xmlrpc.php,
    ping.weblogalot.com/rpc.php,
    ping.wordblog.de/,
    r.hatena.ne.jp/rpc,
    rpc.bloggerei.de/ping/,
    rpc.blogrolling.com/pinger/,
    rpc.icerocket.com:10080/,
    rpc.pingomatic.com,
    rpc.reader.livedoor.com/ping,
    rpc.technorati.com/rpc/ping,
    rpc.technorati.jp/rpc/ping,
    rpc.twingly.com/,
    rpc.weblogs.com/RPC2,
    wasalive.com/ping/,
    www.blogpeople.net/servlet/weblogUpdates,
    xping.pubsub.com/ping/,
    zhuaxia.com/rpc/server.php
    </textarea>
    <br>
    <br>
    <input type="hidden" name="q" value="1">
    <input class="button" type="submit" id="submit2" value="Ping Site">
    </form>
    <?
    }
    ?> 
    Bye
     
    • Thanks Thanks x 6
    Last edited: May 13, 2010
  2. nirose

    nirose Senior Member

    Joined:
    Oct 24, 2008
    Messages:
    992
    Likes Received:
    439
    Location:
    somake.us
    Thanks a ton khaoss. will check it out soon.
     
  3. wpbacklinks

    wpbacklinks Elite Member

    Joined:
    Mar 27, 2010
    Messages:
    3,417
    Likes Received:
    1,350
    Gender:
    Male
    Occupation:
    Affiliate Marketer
    Location:
    Everywhere
    should i save it to index.php only? how to automate ping site?
     
  4. iglow

    iglow Elite Member

    Joined:
    Feb 20, 2009
    Messages:
    2,080
    Likes Received:
    856
    Home Page:
    Parse error: syntax error, unexpected '<' in /home/admin/domains/minedomain/public_html/pingler.php on line 91
     
  5. khaoss

    khaoss Registered Member

    Joined:
    May 10, 2010
    Messages:
    55
    Likes Received:
    19
    Occupation:
    Web Marketing and SEO
    Location:
    Torino
    sorry i missed closed tag php :)

    Retry now!
     
  6. nirose

    nirose Senior Member

    Joined:
    Oct 24, 2008
    Messages:
    992
    Likes Received:
    439
    Location:
    somake.us
    i get that too. any fix for this.

    thats fixed but when i click Ping Site nothing happens.
     
    Last edited: May 13, 2010
  7. sweetmoney

    sweetmoney Newbie

    Joined:
    May 3, 2010
    Messages:
    5
    Likes Received:
    0
    When I hit Ping Site nothing happens
     
  8. nirose

    nirose Senior Member

    Joined:
    Oct 24, 2008
    Messages:
    992
    Likes Received:
    439
    Location:
    somake.us
    You just added the form without what the form does like action.

    please fix it.
     
  9. iglow

    iglow Elite Member

    Joined:
    Feb 20, 2009
    Messages:
    2,080
    Likes Received:
    856
    Home Page:
    yep script is incomplete clicking button si not integrated with action
     
  10. khaoss

    khaoss Registered Member

    Joined:
    May 10, 2010
    Messages:
    55
    Likes Received:
    19
    Occupation:
    Web Marketing and SEO
    Location:
    Torino
    Have you Change type of input from button to submit ?

    This script i executive with POST AJAX... So you must change button type :)

    I Correct the script.. If you want change manualy or copy/paste this code :

    PHP:
    <?php
    if($_POST['q']){
    $site_name $_POST['site_name'];
    if(
    $site_name == ""){
    ?>
    <div class="notification information png_bg"><div>No site Name</div></div>
    <?
        return;
    }

    $site_url_rss="";
    $site_url_rss = $_POST['site_url_rss'];

    /**
     * The URL of your site
     */
    $site_url = $_POST['site_url'];
    if($site_url == ""){
    ?>
    <div class="notification information png_bg"><div>No URL</div></div>
    <?
        return;
    }


    $lista1=$_POST['lista'];
    if($lista1 == ""){
    ?>
    <div class="notification information png_bg"><div>No List Ping</div></div>
    <?
        return;
    }


    $request = <<<EOT
    <?xml version="1.0" encoding="iso-8859-1"?>
    <methodCall>
    <methodName>weblogUpdates.ping</methodName>
    <params>
     <param>
      <value>
       <string>$site_name</string>
      </value>
     </param>
     <param>
      <value>
       <string>$site_url</string>
      </value>
     </param>
       <param>
          <value>
            <string>$site_url_rss</string>
          </value>
        </param>
    </params>
    </methodCall>
    EOT;


    $lista=explode(',',$lista1);

    ?>
    <h3>Pinging <a href="<?=$site_url?>"><?=$site_name?></a></h3>
    <?
    foreach($lista as $server){

        if (!empty($server)){

        $tmp=explode("/",$server,2);

        $ch = curl_init();
               curl_setopt($ch, CURLOPT_URL, "http://".trim($server));             // Target site 
            curl_setopt ($ch, CURLOPT_POSTFIELDS, trim($request)); 
            curl_setopt ($ch, CURLOPT_POST, TRUE);  
        curl_setopt($ch, CURLOPT_TIMEOUT, 5);    // Timeout 
        curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)");   // Webbot name 
        curl_setopt($ch, CURLOPT_REFERER, trim($tmp[0]));            // Referer value 
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);     // Return in string
     
            $return_array = curl_exec($ch); 
     
          curl_close($ch);

        echo $tmp[0].": ".substr(strip_tags($return_array),16)."<br>";

        }
        echo "<br>";
    }
    }else{
    ?>
    <h3>Ping Service:</h3>
    <form id="ping_form" method="POST" action="">
    Web Site Name:<br>
    <input type="text" name="site_name" id="site_name"><br>
    <br>
    Web Site Url:<br>
    <input type="text" name="site_url" id="site_url"><br>
    <br>
    Web Site Url RSS (opzionale):<br>
    <input type="text" name="site_url_rss" id="site_url_rss"><br>
    <br>
    Ping Service:<br>
    <textarea id="lista" name="lista" wrap="off" cols="70" rows="10">
    rpc.technorati.com/rpc/ping,
    api.moreover.com/RPC2,
    api.my.yahoo.co.jp/RPC2,
    api.my.yahoo.com/RPC2,
    audiorpc.weblogs.com/RPC2,
    blog.goo.ne.jp/XMLRPC,
    blogpeople.net/ping,
    blogsearch.google.ae/ping/RPC2,
    blogsearch.google.at/ping/RPC2,
    blogsearch.google.be/ping/RPC2,
    blogsearch.google.bg/ping/RPC2,
    blogsearch.google.ca/ping/RPC2,
    blogsearch.google.ch/ping/RPC2,
    blogsearch.google.cl/ping/RPC2,
    blogsearch.google.co.cr/ping/RPC2,
    blogsearch.google.co.hu/ping/RPC2,
    blogsearch.google.co.id/ping/RPC2,
    blogsearch.google.co.il/ping/RPC2,
    blogsearch.google.co.in/ping/RPC2,
    blogsearch.google.co.it/ping/RPC2,
    blogsearch.google.co.jp/ping/RPC2,
    blogsearch.google.co.ma/ping/RPC2,
    blogsearch.google.co.nz/ping/RPC2,
    blogsearch.google.co.th/ping/RPC2,
    blogsearch.google.co.uk/ping/RPC2,
    blogsearch.google.co.ve/ping/RPC2,
    blogsearch.google.co.za/ping/RPC2,
    blogsearch.google.com.ar/ping/RPC2,
    blogsearch.google.com.au/ping/RPC2,
    blogsearch.google.com.br/ping/RPC2,
    blogsearch.google.com.co/ping/RPC2,
    blogsearch.google.com.do/ping/RPC2,
    blogsearch.google.com.mx/ping/RPC2,
    blogsearch.google.com.my/ping/RPC2,
    blogsearch.google.com.pe/ping/RPC2,
    blogsearch.google.com.sa/ping/RPC2,
    blogsearch.google.com.sg/ping/RPC2,
    blogsearch.google.com.tr/ping/RPC2,
    blogsearch.google.com.tw/ping/RPC2,
    blogsearch.google.com.ua/ping/RPC2,
    blogsearch.google.com.uy/ping/RPC2,
    blogsearch.google.com.vn/ping/RPC2,
    blogsearch.google.com/ping/RPC2,
    blogsearch.google.de/ping/RPC2,
    blogsearch.google.es/ping/RPC2,
    blogsearch.google.fi/ping/RPC2,
    blogsearch.google.fr/ping/RPC2,
    blogsearch.google.gr/ping/RPC2,
    blogsearch.google.hr/ping/RPC2,
    blogsearch.google.ie/ping/RPC2,
    blogsearch.google.in/ping/RPC2,
    blogsearch.google.it/ping/RPC2,
    blogsearch.google.jp/ping/RPC2,
    blogsearch.google.lt/ping/RPC2,
    blogsearch.google.nl/ping/RPC2,
    blogsearch.google.pl/ping/RPC2,
    blogsearch.google.pt/ping/RPC2,
    blogsearch.google.ro/ping/RPC2,
    blogsearch.google.ru/ping/RPC2,
    blogsearch.google.se/ping/RPC2,
    blogsearch.google.sk/ping/RPC2,
    blogsearch.google.tw/ping/RPC2,
    blogsearch.google.us/ping/RPC2,
    feedsky.com/api/RPC2,
    hamo-search.com/ping.php,
    http://blogsearch.google.lv/ping/RPC2,
    ping.blogoon.net/,
    ping.blogs.yandex.ru/RPC2,
    ping.fc2.com/,
    ping.feedburner.com/,
    ping.kutsulog.net/,
    ping.myblog.jp/,
    ping.namaan.net/rpc,
    ping.snap.com/ping/RPC2,
    ping.syndic8.com/xmlrpc.php,
    ping.weblogalot.com/rpc.php,
    ping.wordblog.de/,
    r.hatena.ne.jp/rpc,
    rpc.bloggerei.de/ping/,
    rpc.blogrolling.com/pinger/,
    rpc.icerocket.com:10080/,
    rpc.pingomatic.com,
    rpc.reader.livedoor.com/ping,
    rpc.technorati.com/rpc/ping,
    rpc.technorati.jp/rpc/ping,
    rpc.twingly.com/,
    rpc.weblogs.com/RPC2,
    wasalive.com/ping/,
    www.blogpeople.net/servlet/weblogUpdates,
    xping.pubsub.com/ping/,
    zhuaxia.com/rpc/server.php
    </textarea>
    <br>
    <br>
    <input type="hidden" name="q" value="1">
    <input class="button" type="submit" id="submit2" value="Ping Site">
    </form>
    <?
    }
    ?>
    Let's me know ;)
     
    • Thanks Thanks x 2
  11. sweetmoney

    sweetmoney Newbie

    Joined:
    May 3, 2010
    Messages:
    5
    Likes Received:
    0
    seems to work now. thanks
     
  12. khaoss

    khaoss Registered Member

    Joined:
    May 10, 2010
    Messages:
    55
    Likes Received:
    19
    Occupation:
    Web Marketing and SEO
    Location:
    Torino
    Fine !! :)
     
  13. nirose

    nirose Senior Member

    Joined:
    Oct 24, 2008
    Messages:
    992
    Likes Received:
    439
    Location:
    somake.us
    Its working now i think
    i get this message with the ping
    blogsearch.google.cl: flerror0 messageThanks for the ping.


    all we gotta do now is make it look good graphically
     
  14. iglow

    iglow Elite Member

    Joined:
    Feb 20, 2009
    Messages:
    2,080
    Likes Received:
    856
    Home Page:
    i dont get it now, what to change and where after theres 2 differentscripts ;)
     
  15. nirose

    nirose Senior Member

    Joined:
    Oct 24, 2008
    Messages:
    992
    Likes Received:
    439
    Location:
    somake.us
    Iglow just use the last script khaoss posted. it seems to works.
     
    • Thanks Thanks x 1
  16. ghprod

    ghprod Regular Member

    Joined:
    Mar 18, 2009
    Messages:
    230
    Likes Received:
    40
    Home Page:
    its working :D

    thanks for share :)
     
  17. dexter3

    dexter3 BANNED BANNED

    Joined:
    Mar 19, 2010
    Messages:
    11
    Likes Received:
    5
    Write:
     
  18. iglow

    iglow Elite Member

    Joined:
    Feb 20, 2009
    Messages:
    2,080
    Likes Received:
    856
    Home Page:
    works cool. but to not get banned by ping services - any possibility to rotate ip by proxy or by using 'persons ip' ?
     
  19. nirose

    nirose Senior Member

    Joined:
    Oct 24, 2008
    Messages:
    992
    Likes Received:
    439
    Location:
    somake.us
    I don't know if this is possible or not.

    php works on the server but Could you make it so that it operates on the users PC rather than the server. then it won't need a proxy or a ip change cuz it will be new for every users.

    just my thought
     
  20. khaoss

    khaoss Registered Member

    Joined:
    May 10, 2010
    Messages:
    55
    Likes Received:
    19
    Occupation:
    Web Marketing and SEO
    Location:
    Torino
    heheh .. i'm not a graphic design ;-(

    But i'm working around for improve design!

    @iglow: yes no problem.. I don't insert proxy options because i didn't one :D

    Can you give me 1-2-3 proxy only for try ? So.. i can improve my script with proxy.