> <?php
>   $keywords=explode(" ",$SearchString);
>   $q = new COM("ixsso.Query");
>   $n = new COM("ixsso.Util");
>   $q->Query = "@contents Server";
>   $q->Catalog = "its";
>   $q->SortBy = "rank[d]";
>   $q->Columns = "DocTitle, vpath";
>   $q->MaxRecords = 200;
>   $q->Query=$SearchString;
>   $n->AddScopeToQuery($q,"/","deep");
>   $rs = $q->CreateRecordSet("nonsequential");
>   $rs->PageSize = 10;
>   if (!$rs->EOF) {
>     $c = 0;
>     while (!($rs->EOF) && ($c<$rs->PageSize)) {
>               $fld=$rs->Fields(1);
>               echo $fld->Value;
>               $fld=$rs->Fields(2);
>               $link=$fld->Value;
>       $rs->MoveNext();
>       $c++;
>     }
>     $rs->Close();
>   } else {
>     echo "no records";
>   }
>
> ?>

That code works from a web browser, it would suggest that its not getting the
correct handle as its not a windows app when run from command line..

I could of course be very wrong. Especially as the testcom doesnt crash from a
browser....


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to