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 Tue, 06 Nov 2007 03:06:03 GMT
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

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