afternoon,,i will update svn...and try the newest...


On Nov 7, 2007 11:23 AM, Dave Lewis <[EMAIL PROTECTED]> wrote:

>
> On Nov 6, 2007, at 8:10 PM, James liu wrote:
>
> > 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";}}
> >>
> >
>
> This is exactly correct.
>
> > two var_dump result:
> > bool(false)
> >
>
> So, unserializing is failing.  Are you running from the trunk or from
> a nightly?  There was a bug a couple of weeks ago that sent back
> faulty serialized data.  It's fixed now.  It's possible this is your
> issue.
>
> dave
>
>
> >
> > On Nov 6, 2007 10:36 PM, Dave Lewis <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> >>>> 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 <[EMAIL PROTECTED]> wrote:
> >>>>>
> >>>>> I would imagine you have to unserialize
> >>>>>
> >>>>> On 11/5/07, James liu <[EMAIL PROTECTED]> 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
>
>


-- 
regards
jl

Reply via email to