Tags: google

Sort by: Date / Title /

  1. 3 years ago by stephane
    "Pour obtenir le code d'un livre, on fait une recherche sur Google Books Search. Quand l'ouvrage est trouvé, l'URL contient entre id= et & le code. Exemple pour Les Misérables: http://books.google.com/books?id=-48GAAAAQAAJ&printsec=frontcover &dq=les+mis%C3%A9rables&hl=fr Le code est -48GAAAAQAAJ et on le place dans le script en paramètre de GBS_insertEmbeddedViewer ('xxxxxxxxxxxx'). Les deux autres paramètres sont la largeur et la hauteur." Src: Src:
    1. <script type="text/javascript" src="http://books.google.com/books/previewlib.js">
    2. </script>
    3. <script type="text/javascript">GBS_insertEmbeddedViewer('xxxxxxxxxxxx',500,500);
    4. </script>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1283"></script>
  2. 3 years ago by jacinmontava
    1. <?php
    2.  
    3.    if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Googlebot' ) !== false )
    4.    {
    5.          // Tu direccecion de correo
    6.          $email_address = 'tu@tudominio.com ';
    7.  
    8.          // Enviate el email
    9.          mail($email_address,'Alerta de Googlebot',
    10.          'El Googlebot ha visitado tu pagina: '.$_SERVER['REQUEST_URI']);
    11.    }
    12. ?>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1025"></script>
  3. 4 years ago by spirit and saved by 2 others
    Si vous possédez un sitemap dynamique, vous pouvez notifier google, yahoo et ask de sa mise à jour. Renvoie HTTP/1.1 200 OK si tout s'est bien passé. Vous mettez dans un crontab ce script ainsi que la génération du sitemap et c'est gagné (0 0 * * * et 0 12 * * * pour respectivement minuit et midi tous les jours).
    1. $sitemapUrl = 'http://www.monsite.com/sitemap.xml';
    2.  
    3. //google
    4. $google_return = pingSitemap($sitemapUrl, 'http://www.google.com/webmasters/sitemaps/ping?sitemap=');
    5. //ask
    6. $ask_return = pingSitemap($sitemapUrl, 'http://submissions.ask.com/ping?sitemap=');
    7. //yahoo
    8. $yahoo_return = pingSitemap($sitemapUrl, 'http://search.yahooapis.com/SiteExplorerService/V1/ping?sitemap=');
    9.  
    10. echo $google_return;
    11. echo $ask_return;
    12. echo $yahoo_return;
    13.  
    14. function pingSitemap ($sitemapUrl, $notifyUrl) {
    15.  
    16.     $fileName = $notifyUrl . urlencode($sitemapUrl);
    17.  
    18.     $url = parse_url($fileName);
    19.     if (!isset($url["port"])) $url["port"] = 80;
    20.     if (!isset($url["path"])) $url["path"] = "/";
    21.  
    22.     $fp = @fsockopen($url["host"],
    23.                      $url["port"],
    24.                      &$errno, &$errstr, 30);
    25.  
    26.     if ($fp) {
    27.         $head = "";
    28.         $httpRequest = "HEAD ". $url["path"] ."?"
    29.                      .$url["query"] ." HTTP/1.1\r\n"
    30.                      ."Host: ". $url["host"] ."\r\n"
    31.                      ."Connection: close\r\n\r\n";
    32.  
    33.         fputs($fp, $httpRequest);
    34.         while(!feof($fp)) $head .= fgets($fp, 1024);
    35.         fclose($fp);
    36.  
    37.         return $head;
    38.  
    39.     }
    40.  
    41. return "ERROR";
    42.  
    43. }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/482"></script>
  4. sponsorised links

First / Previous / Next / Last / Page 1 of 1 (3 posteets)