lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James liu" <liuping.ja...@gmail.com>
Subject Re: how to use PHP AND PHPS?
Date Wed, 07 Nov 2007 01:10:17 GMT
first var_dump result(part not all):

string(50506)
> "a:2:{s:14:"responseHeader";a:3:{s:6:"status";i:0;s:5:"QTime";i:2906;s:6:"params";a:6:{s:6:"indent";s:2:"on";s:5:"start";s:1:"0";s:1:"q";s:1:"2";s:2:"wt";s:4:"phps";s:4:"rows";s:2:"10";s:7:"version";s:3:"
> 2.2";}}
>

two var_dump result:
bool(false)


On Nov 6, 2007 10:36 PM, Dave Lewis <dalewis@tikva.com> wrote:
> What are the results of the two var_dumps?
>
> dave
>
>
> On Nov 5, 2007, at 10:06 PM, James liu wrote:
>
> > first: i m sure i enable php and phps in my solrconfig.xml
> > two: i can't get answer.
> >
> > *phps:
> > *<?php
> > $url = '
> > http://localhost:8080/solr1/select/?
> > q=2&version=2.2&start=0&rows=10&indent=on&wt=phps
> > ';
> > $a = file_get_contents($url);
> > echo 'before unserialize....<br/>';
> > var_dump($a);
> > $a = unserialize($a);
> > echo 'after unserialize...<br/>';
> > var_dump($a);
> > ?>*
> >
> > *
> >
> >
> > On 11/6/07, Stu Hood <stuhood@webmail.us> wrote:
> >>
> >> Did you enable the PHP serialized response writer in your
> >> solrconfig.xml?
> >> It is not enabled by default.
> >>
> >> Thanks,
> >> Stu
> >>
> >>
> >> -----Original Message-----
> >> From: James liu <liuping.james@gmail.com>
> >> Sent: Monday, November 5, 2007 9:03am
> >> To: solr-user@lucene.apache.org
> >> Subject: Re: how to use PHP AND PHPS?
> >>
> >> i know it...but u try it,,u will find simlar question.
> >>
> >> On 11/5/07, Robert Young <bubblenut@gmail.com> wrote:
> >>>
> >>> I would imagine you have to unserialize
> >>>
> >>> On 11/5/07, James liu <liuping.james@gmail.com> wrote:
> >>>> i find they all return string....
> >>>>
> >>>> <?php
> >>>>   $url = '
> >>>>
> >>>
> >> http://localhost:8080/solr/select/?
> >> q=solr&version=2.2&start=0&rows=10&indent=on&wt=php
> >>>> ';
> >>>>   var_dump(file_get_contents($url);
> >>>> ?>
> >>>>
> >>>>
> >>>> --
> >>>> regards
> >>>> jl
> >>>>
> >>>
> >>
> >>
> >>
> >> --
> >> regards
> >> jl
> >>
> >>
> >>
> >
> >
> > --
> > regards
> > jl
>
>



-- 
regards
jl

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message