Jump to content


Photo

Problemas Na Busca De Imagens


  • Faça o login para participar
1 reply to this topic

#1 the one

the one

    Anarquia Corporation

  • Usuários
  • 213 posts
  • Sexo:Não informado
  • Localidade:Ourinhos - SP

Posted 13/10/2004, 10:00

Ae é o seguinte to passando o código , não sei se pode ser um problema no codigo ou um problema do google, mas vai que alguem aqui saiba resolver. Quando vc digita alguma coisa na busca, ele até chega a buscar mais algumas thumbnails não abrem, não sei pq, se alguem souber da um help ai, ou então uma explicação do porque.
PS: eu acho que são aquelas imagens que realmente nem no google abrem, mas pode ser outra coisa :ph34r:

<head>
<meta http-equiv="Content-Language" content="en-us">
</head>
<body>
<table border="0" cellpadding="0" style="border-collapse: collapse" width="100%" id="table1">
  <tr>
    <td>
   

<font face="Verdana"><b>Web Image Search &amp; Grabber&nbsp; v 1.00</b></font><form AUTOCOMPLETE = "off" method="POST" enctype="multipart/form-data">
  <p><input type="text" name="imagesxsearch" size="29">&nbsp;&nbsp; <input type="submit" value="Search" name="B1">&nbsp;
  Page: <select size="1" name="D1">
  <option selected value="&amp;start=0">Page 1</option>
  <option value="&amp;start=20">Page 2</option>
  <option value="&amp;start=40">Page 3</option>
  <option value="&amp;start=60">Page 4</option>
  <option value="&amp;start=80">Page 5</option>
  <option value="&amp;start=100">Page 6</option>
  <option value="&amp;start=120">Page 7</option>
  <option value="&amp;start=140">Page 8</option>
  <option value="&amp;start=160">Page 9</option>
  <option value="&amp;start=180">Page 10</option>
  <option value="&amp;start=200">Page 11</option>
  <option value="&amp;start=220">Page 12</option>
  <option value="&amp;start=240">Page 13</option>
  <option value="&amp;start=260">Page 14</option>
  <option value="&amp;start=280">Page 15</option>
  <option value="&amp;start=300">Page 16</option>
  <option value="&amp;start=320">Page 17</option>
  <option value="&amp;start=340">Page 18</option>
  <option value="&amp;start=360">Page 19</option>
  <option value="&amp;start=380">Page 20</option>
  </select>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="Close Window" name="close" onClick="window.close()"><p>
</p>
  <p><input type="radio" value="V1" checked name="safeonoff">Safe Search on&nbsp;&nbsp;&nbsp;
  <input type="radio" name="safeonoff" value="V2">*Safe Search Off </p>
  <hr>
</form>

</td>
  </tr>
</table>
<?

$searchspec =$_POST['imagesxsearch'];

$morepage =$_POST['D1'];

$safeonoff =$_POST['safeonoff'];

if ($safeonoff == 'V1'){
  $saveonoff ='on';
}

if ($safeonoff == 'V2'){
  $saveonoff ='off';
}

if (count ($searchspec) == 0){
$searchspec = $_GET['imagesxsearch'];
}

if (count ($searchspec) <> 0){

  $searchspec = str_replace (' ','+',$searchspec);

  $google ='http://images.google.com/images?hl=en&lr=&ie=UTF-8&safe='.$saveonoff.'&q='.$searchspec.'&btnG=Search'.$morepage;

  $file = implode('', file($google));

  $count = "0";
  $file = explode('imgurl=',$file);
  echo 'Last Search Phrase: '.$searchspec.'<br><br>';
  foreach ($file as $listing) {
  $count++;

  $Start = '';
  $GrabEnd = '&imgrefurl';
  $content = $listing;
  $stuff = eregi("$Start(.*)$GrabEnd", $content, $c);
  $newcontent = $c[1];

  if ($newcontent <> ""){
    echo '<a target="_blank" href="'.$newcontent .'"> <img border="0" src="'.$newcontent .'" height="25%"></a>  ';

  }

}

}

?>


<table border="0" cellpadding="0" style="border-collapse: collapse" width="100%" id="table2">
  <tr>
    <td><hr>
    <p align="center"><font face="Verdana" size="1">provided by
<a href="http://www.bestwebau.../a></font><font face="Verdana" style="font-size: 6pt"><br>
    </font>*<font size="1">You must be 18 to use this option</font></td>
  </tr>
</table>


</body>

</html>


Pixado em um muro: Lalá ficou Lelé porque Lili deu o Loló pro Lulu

Visite: Underworld


#2 Danpinheiro

Danpinheiro

    Novato no fórum

  • Usuários
  • 5 posts
  • Sexo:Não informado

Posted 14/03/2005, 16:36

Onde vc conseguiu esse código?




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq