Custom Search

spiderzone backlink

  <?php

          if (isset($_GET['category_id']))
                  $cat_id = intval($_GET['category_id']);
          else
                  $cat_id = 0;

          $url = "http://www.spiderizon.com/spider/main/6975";

          if ($cat_id > 0)
                  $url = "http://www.spiderizon.com/spider/category/6975?category_id=$cat_id";

          function getPage($u)
          {
                  ob_start();
                  $content = file_get_contents($u);
                  ob_end_clean();

                  if ($content === FALSE)
                          $content = "";

                  return $content;
          }

          $c = getPage($url);

          if (strlen($c) < 2000)
          {
                  sleep(1);

                  $c = getPage($url);

                  if (strlen($c) < 2000)
                  {
                          sleep(1);
                          $c = getPage($url);
                  }
          }

          echo $c;
  ?>