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

khaoss

Registered Member
Joined
May 10, 2010
Messages
55
Reaction score
20
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
 
Last edited:
Thanks a ton khaoss. will check it out soon.
 
should i save it to index.php only? how to automate ping site?
 
Parse error: syntax error, unexpected '<' in /home/admin/domains/minedomain/public_html/pingler.php on line 91
 
sorry i missed closed tag php :-)

Retry now!
 
i get that too. any fix for this.

thats fixed but when i click Ping Site nothing happens.
 
Last edited:
You just added the form without what the form does like action.

please fix it.
 
yep script is incomplete clicking button si not integrated with action
 
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 ;)
 
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
 
i dont get it now, what to change and where after theres 2 differentscripts ;)
 
Iglow just use the last script khaoss posted. it seems to works.
 
Write:
audiorpc.weblogs.com: 2;for the ping.legalYou agree that use of the Weblogs.com ping service is governed by the Terms of Use found at http://www.weblogs.com.flerror0

blog.goo.ne.jp: faultString server error. method not found. faultCode -32601

blogpeople.net: flerror 0 message Thanks for the ping.

blogsearch.google.ae: flerror0 messageThanks for the ping.

blogsearch.google.at: flerror0 messageThanks for the ping.

blogsearch.google.be: flerror0 messageThanks for the ping.

blogsearch.google.bg: flerror0 messageThanks for the ping.

blogsearch.google.ca: flerror0 messageThanks for the ping.

blogsearch.google.ch: flerror0 messageThanks for the ping.

blogsearch.google.cl: flerror0 messageThanks for the ping.

blogsearch.google.co.cr: flerror0 messageThanks for the ping.

blogsearch.google.co.hu: flerror0 messageThanks for the ping.

blogsearch.google.co.id: flerror0 messageThanks for the ping.

blogsearch.google.co.il: flerror0 messageThanks for the ping.

blogsearch.google.co.in: flerror0 messageThanks for the ping.

blogsearch.google.co.it: oved The document has moved here.

blogsearch.google.co.jp: flerror0 messageThanks for the ping.

blogsearch.google.co.ma: flerror0 messageThanks for the ping.

blogsearch.google.co.nz: flerror0 messageThanks for the ping.

blogsearch.google.co.th: flerror0 messageThanks for the ping.

blogsearch.google.co.uk: flerror0 messageThanks for the ping.

blogsearch.google.co.ve: flerror0 messageThanks for the ping.

blogsearch.google.co.za: flerror0 messageThanks for the ping.

blogsearch.google.com.ar: flerror0 messageThanks for the ping.

blogsearch.google.com.au: flerror0 messageThanks for the ping.

blogsearch.google.com.br: flerror0 messageThanks for the ping.

blogsearch.google.com.co: flerror0 messageThanks for the ping.

blogsearch.google.com.do: flerror0 messageThanks for the ping.

blogsearch.google.com.mx: flerror0 messageThanks for the ping.

blogsearch.google.com.my: flerror0 messageThanks for the ping.

blogsearch.google.com.pe: flerror0 messageThanks for the ping.

blogsearch.google.com.sa: flerror0 messageThanks for the ping.

blogsearch.google.com.sg: flerror0 messageThanks for the ping.

blogsearch.google.com.tr: flerror0 messageThanks for the ping.

blogsearch.google.com.tw: flerror0 messageThanks for the ping.

blogsearch.google.com.ua: flerror0 messageThanks for the ping.

blogsearch.google.com.uy: flerror0 messageThanks for the ping.

blogsearch.google.com.vn: flerror0 messageThanks for the ping.

blogsearch.google.com: flerror0 messageThanks for the ping.

blogsearch.google.de: flerror0 messageThanks for the ping.

blogsearch.google.es: flerror0 messageThanks for the ping.

blogsearch.google.fi: flerror0 messageThanks for the ping.

blogsearch.google.fr: flerror0 messageThanks for the ping.

blogsearch.google.gr: flerror0 messageThanks for the ping.

blogsearch.google.hr: flerror0 messageThanks for the ping.

blogsearch.google.ie: flerror0 messageThanks for the ping.

blogsearch.google.in: oved The document has moved here.

blogsearch.google.it: flerror0 messageThanks for the ping.

blogsearch.google.jp: flerror0 messageThanks for the ping.

blogsearch.google.lt: flerror0 messageThanks for the ping.

blogsearch.google.nl: flerror0 messageThanks for the ping.

blogsearch.google.pl: flerror0 messageThanks for the ping.

blogsearch.google.pt: flerror0 messageThanks for the ping.

blogsearch.google.ro: flerror0 messageThanks for the ping.

blogsearch.google.ru: flerror0 messageThanks for the ping.

blogsearch.google.se: flerror0 messageThanks for the ping.

blogsearch.google.sk: flerror0 messageThanks for the ping.

blogsearch.google.tw: oved The document has moved here.

blogsearch.google.us: flerror0 messageThanks for the ping.

feedsky.com: nd The document has moved here. Apache/2.2.3 (Unix) PHP/5.2.0 Server at feedsky.com Port 80

hamo-search.com: 0 message Thanks for your Ping.
 
works cool. but to not get banned by ping services - any possibility to rotate ip by proxy or by using 'persons ip' ?
 
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
 
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.
 
Back
Top