Hello,

I try to output htdig search results in my php-site using this script:
.........
if ($action="search")
{
    $words = urlencode($_GET['words']);
    $method=$_GET['method'];
    $sort=$_GET['sort'];
    $config=$_GET['config'];
    $search_algorithm = urlencode($_GET['search_algorithm']);
    $matchesperpage=$_GET['matchesperpage'];
    $page=$_GET['page'];


$url = "http://172.16.16.13/cgi-bin/htsearch?";
. "words=$words"
. "&method=$method"
. "&sort=$sort"
. "&config=$config"
. "&search_algorithm=$search_algorithm"
. "&matchesperpage=$matchesperpage"
. "&match=match.php"
. "&result=result.php"
. "&page=$page"
. "&script_name=file_overview.php?action=search


if($fp = fopen($url,'r'))
{
  while(!feof($fp))
  {
     $content .= fgets($fp, 1024);
  }
  fclose($fp);
  if(strlen($content)<100)
  {
    echo "Nothing found!";
  }
  else
  {
    list($header,$footer) = split("<!--SPLIT_HERE-->",$content);
    echo $header;
    $trans = array(";" => "&", "search?" => "search&");
    strtr($footer,$trans);
    echo $footer;
  }
}
echo "<br><br>";
}

.........

It runs nice, but if I have more than one sites of matches,the first site is
ok (my layout), but the next sites are shown NOT in my layout,
but in the default output from htdig!


I cannot understand why! Has anybody some ideas?

Has anybody some examples for output with php wrapper?

Thanks
jasmen



-- 
250 MB Mailbox, 100 FreeSMS/Monat, 1000 MB Online-Festplatte
Jetzt GMX TopMail kostenlos testen http://www.gmx.net/de/go/topmail



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to