You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by xin zhang <xi...@yahoo.com> on 2008/06/02 21:36:07 UTC
shindig php
Hi
I followed the instruction here http://incubator.apache.org/shindig/#preReqs and did the full checkout. I didn't create a virtual host and modified web_prefix to '/shindig/php' and htaccess to RewriteRule (/shindig/php/*) index.php [L]
But when I point my browser to http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml, I got Page Not Found error.
What am I missing here?
Thanks
Re: shindig php
Posted by Christian Schalk <cs...@google.com>.
This might be too obvious, but I noticed you mentioned:
>http://*your.host*/shindig/php/gadgets/ifr?url=
http://www.labpixies.com/campaigns/todo/todo.xml
Notice that "your.host" should literally be your host.. you know like
"localhost" or whatever your host is named....
-Christian
On Mon, Jun 2, 2008 at 3:02 PM, Chris Chabot <ch...@xs4all.nl> wrote:
> First of all make sure if it actually reaches the index.php file, if not
> then the mod_rewrite part is your problem.
>
> You can check this by putting a temporary
> die("in index.php");
> at the top of the index.php file just after the <?php bit.
>
> The second thing to check is the servlet => url mapping part, the easiest
> way to find out is probably to put some echo's in the index.php file,
> something like:
>
> // Try to match the request url to our servlet mapping
> $servlet = false;
> $uri = $_SERVER["REQUEST_URI"];
> foreach ($servletMap as $url => $class) {
> echo "matching ".substr($uri, 0, strlen($url))." against $url<br
> />\n";
> if (substr($uri, 0, strlen($url)) == $url) {
> $servlet = $class;
> break;
> }
> }
>
> and see what the output is ... chances are there's some obvious difference
> that causes a string mismatch ... fix that and your up and running :)
>
> G'luck and let me know if that helped!
>
> -- Chris
>
>
>
> On Jun 2, 2008, at 9:36 PM, xin zhang wrote:
>
> Hi
>>
>> I followed the instruction here
>> http://incubator.apache.org/shindig/#preReqs and did the full checkout. I
>> didn't create a virtual host and modified web_prefix to '/shindig/php' and
>> htaccess to RewriteRule (/shindig/php/*) index.php [L]
>>
>> But when I point my browser to
>> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml,
>> I got Page Not Found error.
>>
>> What am I missing here?
>>
>> Thanks
>>
>>
>>
>>
>
--
Chris Schalk, Google Developer Advocate
Re: shindig php
Posted by Kevin Brown <et...@google.com>.
It's generally useful to check this stuff by turning on debugging for
rewrite rules.
RewriteLog "/path/to/file.log"
RewriteLogLevel 3
On Mon, Jun 2, 2008 at 3:02 PM, Chris Chabot <ch...@xs4all.nl> wrote:
> First of all make sure if it actually reaches the index.php file, if not
> then the mod_rewrite part is your problem.
>
> You can check this by putting a temporary
> die("in index.php");
> at the top of the index.php file just after the <?php bit.
>
> The second thing to check is the servlet => url mapping part, the easiest
> way to find out is probably to put some echo's in the index.php file,
> something like:
>
> // Try to match the request url to our servlet mapping
> $servlet = false;
> $uri = $_SERVER["REQUEST_URI"];
> foreach ($servletMap as $url => $class) {
> echo "matching ".substr($uri, 0, strlen($url))." against $url<br
> />\n";
> if (substr($uri, 0, strlen($url)) == $url) {
> $servlet = $class;
> break;
> }
> }
>
> and see what the output is ... chances are there's some obvious difference
> that causes a string mismatch ... fix that and your up and running :)
>
> G'luck and let me know if that helped!
>
> -- Chris
>
>
>
> On Jun 2, 2008, at 9:36 PM, xin zhang wrote:
>
> Hi
>>
>> I followed the instruction here
>> http://incubator.apache.org/shindig/#preReqs and did the full checkout. I
>> didn't create a virtual host and modified web_prefix to '/shindig/php' and
>> htaccess to RewriteRule (/shindig/php/*) index.php [L]
>>
>> But when I point my browser to
>> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml,
>> I got Page Not Found error.
>>
>> What am I missing here?
>>
>> Thanks
>>
>>
>>
>>
>
Re: shindig php
Posted by Kevin Brown <et...@google.com>.
I'd strongly recommend nobody ever use the ze1_compatibility_mode flag; the
documentation around it is confusing, but ultimately it's only really
necessary if you're using a very small set of PHP extensions. Most php4 code
runs fine on a php5 setup without this flag.
On Tue, Jun 3, 2008 at 8:22 AM, Chris Chabot <ch...@xs4all.nl> wrote:
> Ah see now that you told us that, i think the fix presented it's self
> too.... disable the ze_compatibility_mode? :)
>
> In my php.ini it's off:
> ; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
> zend.ze1_compatibility_mode = Off
>
> which is the default for a php 5 installation.
>
> If you don't have permission to edit the php.ini file (a shared host or
> something) you could try to add it to the .htaccess file:
> php_flag zend.ze1_compatibility_mode off
>
> but that does depend on your host having "AllowOverride All" in it's
> config..
>
> -- Chris
>
>
>
> On Jun 3, 2008, at 5:14 PM, xin zhang wrote:
>
> The error message from the log file is:
>>
>> PHP Fatal error: Cannot clone object of class SimpleXMLElement due to
>> 'zend.ze1_compatibility_mode' in
>> /Library/WebServer/Documents/shindig/php/src/gadgets/GadgetSpecParser.php on
>> line 31
>>
>>
>>
>>
>> --- On Tue, 6/3/08, xin zhang <xi...@yahoo.com> wrote:
>>
>> From: xin zhang <xi...@yahoo.com>
>>> Subject: Re: shindig php
>>> To: shindig-dev@incubator.apache.org
>>> Date: Tuesday, June 3, 2008, 10:02 AM
>>> Thanks Chris.
>>>
>>> I have fixed the rewrite problem, but when I try the
>>> example
>>>
>>>
>>> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
>>>
>>> it returned empty page without error message, I checked and
>>> it died at calling $class->doGet() and $servlet returned
>>> GadgetRenderingServlet.
>>>
>>> What is the problem?
>>>
>>>
>>>
>>> --- On Mon, 6/2/08, Chris Chabot <ch...@xs4all.nl>
>>> wrote:
>>>
>>> From: Chris Chabot <ch...@xs4all.nl>
>>>> Subject: Re: shindig php
>>>> To: shindig-dev@incubator.apache.org
>>>> Date: Monday, June 2, 2008, 5:02 PM
>>>> First of all make sure if it actually reaches the
>>>>
>>> index.php
>>>
>>>> file, if
>>>> not then the mod_rewrite part is your problem.
>>>>
>>>> You can check this by putting a temporary
>>>> die("in index.php");
>>>> at the top of the index.php file just after the
>>>>
>>> <?php
>>>
>>>> bit.
>>>>
>>>> The second thing to check is the servlet => url
>>>>
>>> mapping
>>>
>>>> part, the
>>>> easiest way to find out is probably to put some
>>>>
>>> echo's
>>>
>>>> in the
>>>> index.php file, something like:
>>>>
>>>> // Try to match the request url to our servlet mapping
>>>> $servlet = false;
>>>> $uri = $_SERVER["REQUEST_URI"];
>>>> foreach ($servletMap as $url => $class) {
>>>> echo "matching ".substr($uri, 0,
>>>> strlen($url))." against $url<br
>>>>
>>> />\n";
>>>
>>>> if (substr($uri, 0, strlen($url)) == $url) {
>>>> $servlet = $class;
>>>> break;
>>>> }
>>>> }
>>>>
>>>> and see what the output is ... chances are there's
>>>>
>>> some
>>>
>>>> obvious
>>>> difference that causes a string mismatch ... fix that
>>>>
>>> and
>>>
>>>> your up and
>>>> running :)
>>>>
>>>> G'luck and let me know if that helped!
>>>>
>>>> -- Chris
>>>>
>>>>
>>>> On Jun 2, 2008, at 9:36 PM, xin zhang wrote:
>>>>
>>>> Hi
>>>>>
>>>>> I followed the instruction here
>>>>>
>>>> http://incubator.apache.org/shindig/#preReqs
>>>>
>>>>> and did the full checkout. I didn't create a
>>>>>
>>>> virtual host and
>>>>
>>>>> modified web_prefix to '/shindig/php' and
>>>>>
>>>> htaccess to RewriteRule (/
>>>>
>>>>> shindig/php/*) index.php [L]
>>>>>
>>>>> But when I point my browser to
>>>>>
>>>>
>>>>
>>> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
>>>
>>>>
>>>> , I got Page Not Found error.
>>>>>
>>>>> What am I missing here?
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>>
>>>>>
>>
>>
>>
>
Re: shindig php
Posted by Chris Chabot <ch...@xs4all.nl>.
Ah see now that you told us that, i think the fix presented it's self
too.... disable the ze_compatibility_mode? :)
In my php.ini it's off:
; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
zend.ze1_compatibility_mode = Off
which is the default for a php 5 installation.
If you don't have permission to edit the php.ini file (a shared host
or something) you could try to add it to the .htaccess file:
php_flag zend.ze1_compatibility_mode off
but that does depend on your host having "AllowOverride All" in it's
config..
-- Chris
On Jun 3, 2008, at 5:14 PM, xin zhang wrote:
> The error message from the log file is:
>
> PHP Fatal error: Cannot clone object of class SimpleXMLElement due
> to 'zend.ze1_compatibility_mode' in /Library/WebServer/Documents/
> shindig/php/src/gadgets/GadgetSpecParser.php on line 31
>
>
>
>
> --- On Tue, 6/3/08, xin zhang <xi...@yahoo.com> wrote:
>
>> From: xin zhang <xi...@yahoo.com>
>> Subject: Re: shindig php
>> To: shindig-dev@incubator.apache.org
>> Date: Tuesday, June 3, 2008, 10:02 AM
>> Thanks Chris.
>>
>> I have fixed the rewrite problem, but when I try the
>> example
>>
>> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
>>
>> it returned empty page without error message, I checked and
>> it died at calling $class->doGet() and $servlet returned
>> GadgetRenderingServlet.
>>
>> What is the problem?
>>
>>
>>
>> --- On Mon, 6/2/08, Chris Chabot <ch...@xs4all.nl>
>> wrote:
>>
>>> From: Chris Chabot <ch...@xs4all.nl>
>>> Subject: Re: shindig php
>>> To: shindig-dev@incubator.apache.org
>>> Date: Monday, June 2, 2008, 5:02 PM
>>> First of all make sure if it actually reaches the
>> index.php
>>> file, if
>>> not then the mod_rewrite part is your problem.
>>>
>>> You can check this by putting a temporary
>>> die("in index.php");
>>> at the top of the index.php file just after the
>> <?php
>>> bit.
>>>
>>> The second thing to check is the servlet => url
>> mapping
>>> part, the
>>> easiest way to find out is probably to put some
>> echo's
>>> in the
>>> index.php file, something like:
>>>
>>> // Try to match the request url to our servlet mapping
>>> $servlet = false;
>>> $uri = $_SERVER["REQUEST_URI"];
>>> foreach ($servletMap as $url => $class) {
>>> echo "matching ".substr($uri, 0,
>>> strlen($url))." against $url<br
>> />\n";
>>> if (substr($uri, 0, strlen($url)) == $url) {
>>> $servlet = $class;
>>> break;
>>> }
>>> }
>>>
>>> and see what the output is ... chances are there's
>> some
>>> obvious
>>> difference that causes a string mismatch ... fix that
>> and
>>> your up and
>>> running :)
>>>
>>> G'luck and let me know if that helped!
>>>
>>> -- Chris
>>>
>>>
>>> On Jun 2, 2008, at 9:36 PM, xin zhang wrote:
>>>
>>>> Hi
>>>>
>>>> I followed the instruction here
>>> http://incubator.apache.org/shindig/#preReqs
>>>> and did the full checkout. I didn't create a
>>> virtual host and
>>>> modified web_prefix to '/shindig/php' and
>>> htaccess to RewriteRule (/
>>>> shindig/php/*) index.php [L]
>>>>
>>>> But when I point my browser to
>>>
>> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
>>>
>>>> , I got Page Not Found error.
>>>>
>>>> What am I missing here?
>>>>
>>>> Thanks
>>>>
>>>>
>>>>
>
>
>
Re: shindig php
Posted by xin zhang <xi...@yahoo.com>.
Thanks Chris!
--- On Tue, 6/3/08, Chris Chabot <ch...@xs4all.nl> wrote:
> From: Chris Chabot <ch...@xs4all.nl>
> Subject: Re: shindig php
> To: shindig-dev@incubator.apache.org
> Date: Tuesday, June 3, 2008, 12:27 PM
> Well the ones i was refering too will use the php shindig
> version,
> else it wouldn't be worth mentioning it right? (java
> version is
> already used on a couple of big ones like hi5, orkut,
> netlog, etc etc)
>
> Can't any names, such companies prefer to time and
> orchestrate their
> own open social announcements them selves :)
>
>
>
> On Jun 3, 2008, at 7:14 PM, xin zhang wrote:
>
> > Thanks Chris.
> >
> > Can you tell me what the name of that 4 major
> > social network sites? Are they all going to use
> shindig php version?
> >
> >
> >
> > --- On Tue, 6/3/08, Chris Chabot
> <ch...@xs4all.nl> wrote:
> >
> >> From: Chris Chabot <ch...@xs4all.nl>
> >> Subject: Re: shindig php
> >> To: shindig-dev@incubator.apache.org
> >> Date: Tuesday, June 3, 2008, 10:33 AM
> >> Hmm i'm the author of the php version of
> shindig so i
> >> might not have a
> >> completely unpartisan look at the situation, but i
> >> wouldn't say that
> >> the php server is 'far behind'.
> >>
> >> Feature wise i think we're a week or so behind
> the java
> >> version on the
> >> RESTful interface, but for the rest (pun intended)
> it has
> >> complete
> >> feature parity, and is being deployed on some 4
> major
> >> social network
> >> sites in the coming weeks and months, meaning well
> over 100
> >> million
> >> people will be using it daily soonish.. So I would
> say
> >> it's usable and
> >> ready and if not we'll fix whatever is in the
> way of it
> >> being so asap :)
> >>
> >> -- Chris
> >>
> >> On Jun 3, 2008, at 5:25 PM, xin zhang wrote:
> >>
> >>> ok, I turn it off and it works.
> >>>
> >>> I have another question. What is status about
> shindig
> >> php server and
> >>> shindig java server. Is that true that the
> >> implentation of shindig
> >>> php is far behind the java version?
> >>>
> >>> Thanks
> >>>
> >>>
> >>> --- On Tue, 6/3/08, xin zhang
> >> <xi...@yahoo.com> wrote:
> >>>
> >>>> From: xin zhang <xi...@yahoo.com>
> >>>> Subject: Re: shindig php
> >>>> To: shindig-dev@incubator.apache.org
> >>>> Date: Tuesday, June 3, 2008, 10:14 AM
> >>>> The error message from the log file is:
> >>>>
> >>>> PHP Fatal error: Cannot clone object of
> class
> >>>> SimpleXMLElement due to
> >>>> 'zend.ze1_compatibility_mode' in
> >>>>
> >>
> /Library/WebServer/Documents/shindig/php/src/gadgets/
> >>>> GadgetSpecParser.php
> >>>> on line 31
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> --- On Tue, 6/3/08, xin zhang
> >> <xi...@yahoo.com>
> >>>> wrote:
> >>>>
> >>>>> From: xin zhang
> <xi...@yahoo.com>
> >>>>> Subject: Re: shindig php
> >>>>> To: shindig-dev@incubator.apache.org
> >>>>> Date: Tuesday, June 3, 2008, 10:02 AM
> >>>>> Thanks Chris.
> >>>>>
> >>>>> I have fixed the rewrite problem, but
> when I
> >> try the
> >>>>> example
> >>>>>
> >>>>>
> >>>>
> >>
> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
> >>>>>
> >>>>> it returned empty page without error
> message,
> >> I
> >>>> checked and
> >>>>> it died at calling $class->doGet()
> and
> >> $servlet
> >>>> returned
> >>>>> GadgetRenderingServlet.
> >>>>>
> >>>>> What is the problem?
> >>>>>
> >>>>>
> >>>>>
> >>>>> --- On Mon, 6/2/08, Chris Chabot
> >>>> <ch...@xs4all.nl>
> >>>>> wrote:
> >>>>>
> >>>>>> From: Chris Chabot
> >> <ch...@xs4all.nl>
> >>>>>> Subject: Re: shindig php
> >>>>>> To:
> shindig-dev@incubator.apache.org
> >>>>>> Date: Monday, June 2, 2008, 5:02
> PM
> >>>>>> First of all make sure if it
> actually
> >> reaches the
> >>>>> index.php
> >>>>>> file, if
> >>>>>> not then the mod_rewrite part is
> your
> >> problem.
> >>>>>>
> >>>>>> You can check this by putting a
> temporary
> >>>>>> die("in index.php");
> >>>>>> at the top of the index.php file
> just
> >> after the
> >>>>> <?php
> >>>>>> bit.
> >>>>>>
> >>>>>> The second thing to check is the
> servlet
> >> =>
> >>>> url
> >>>>> mapping
> >>>>>> part, the
> >>>>>> easiest way to find out is
> probably to put
> >> some
> >>>>> echo's
> >>>>>> in the
> >>>>>> index.php file, something like:
> >>>>>>
> >>>>>> // Try to match the request url to
> our
> >> servlet
> >>>> mapping
> >>>>>> $servlet = false;
> >>>>>> $uri =
> $_SERVER["REQUEST_URI"];
> >>>>>> foreach ($servletMap as $url =>
> $class)
> >> {
> >>>>>> echo "matching
> ".substr($uri,
> >> 0,
> >>>>>> strlen($url))." against
> $url<br
> >>>>> />\n";
> >>>>>> if (substr($uri, 0,
> strlen($url))
> >> ==
> >>>> $url) {
> >>>>>> $servlet = $class;
> >>>>>> break;
> >>>>>> }
> >>>>>> }
> >>>>>>
> >>>>>> and see what the output is ...
> chances are
> >>>> there's
> >>>>> some
> >>>>>> obvious
> >>>>>> difference that causes a string
> mismatch
> >> ... fix
> >>>> that
> >>>>> and
> >>>>>> your up and
> >>>>>> running :)
> >>>>>>
> >>>>>> G'luck and let me know if that
> helped!
> >>>>>>
> >>>>>> -- Chris
> >>>>>>
> >>>>>>
> >>>>>> On Jun 2, 2008, at 9:36 PM, xin
> zhang
> >> wrote:
> >>>>>>
> >>>>>>> Hi
> >>>>>>>
> >>>>>>> I followed the instruction
> here
> >>>>>>
> >> http://incubator.apache.org/shindig/#preReqs
> >>>>>>> and did the full checkout. I
> >> didn't
> >>>> create a
> >>>>>> virtual host and
> >>>>>>> modified web_prefix to
> >>>> '/shindig/php' and
> >>>>>> htaccess to RewriteRule (/
> >>>>>>> shindig/php/*) index.php [L]
> >>>>>>>
> >>>>>>> But when I point my browser to
> >>>>>>
> >>>>>
> >>>>
> >>
> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
> >>>>>>
> >>>>>>> , I got Page Not Found error.
> >>>>>>>
> >>>>>>> What am I missing here?
> >>>>>>>
> >>>>>>> Thanks
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>
> >>>
> >>>
> >
> >
> >
Re: shindig php
Posted by Chris Chabot <ch...@xs4all.nl>.
Well the ones i was refering too will use the php shindig version,
else it wouldn't be worth mentioning it right? (java version is
already used on a couple of big ones like hi5, orkut, netlog, etc etc)
Can't any names, such companies prefer to time and orchestrate their
own open social announcements them selves :)
On Jun 3, 2008, at 7:14 PM, xin zhang wrote:
> Thanks Chris.
>
> Can you tell me what the name of that 4 major
> social network sites? Are they all going to use shindig php version?
>
>
>
> --- On Tue, 6/3/08, Chris Chabot <ch...@xs4all.nl> wrote:
>
>> From: Chris Chabot <ch...@xs4all.nl>
>> Subject: Re: shindig php
>> To: shindig-dev@incubator.apache.org
>> Date: Tuesday, June 3, 2008, 10:33 AM
>> Hmm i'm the author of the php version of shindig so i
>> might not have a
>> completely unpartisan look at the situation, but i
>> wouldn't say that
>> the php server is 'far behind'.
>>
>> Feature wise i think we're a week or so behind the java
>> version on the
>> RESTful interface, but for the rest (pun intended) it has
>> complete
>> feature parity, and is being deployed on some 4 major
>> social network
>> sites in the coming weeks and months, meaning well over 100
>> million
>> people will be using it daily soonish.. So I would say
>> it's usable and
>> ready and if not we'll fix whatever is in the way of it
>> being so asap :)
>>
>> -- Chris
>>
>> On Jun 3, 2008, at 5:25 PM, xin zhang wrote:
>>
>>> ok, I turn it off and it works.
>>>
>>> I have another question. What is status about shindig
>> php server and
>>> shindig java server. Is that true that the
>> implentation of shindig
>>> php is far behind the java version?
>>>
>>> Thanks
>>>
>>>
>>> --- On Tue, 6/3/08, xin zhang
>> <xi...@yahoo.com> wrote:
>>>
>>>> From: xin zhang <xi...@yahoo.com>
>>>> Subject: Re: shindig php
>>>> To: shindig-dev@incubator.apache.org
>>>> Date: Tuesday, June 3, 2008, 10:14 AM
>>>> The error message from the log file is:
>>>>
>>>> PHP Fatal error: Cannot clone object of class
>>>> SimpleXMLElement due to
>>>> 'zend.ze1_compatibility_mode' in
>>>>
>> /Library/WebServer/Documents/shindig/php/src/gadgets/
>>>> GadgetSpecParser.php
>>>> on line 31
>>>>
>>>>
>>>>
>>>>
>>>> --- On Tue, 6/3/08, xin zhang
>> <xi...@yahoo.com>
>>>> wrote:
>>>>
>>>>> From: xin zhang <xi...@yahoo.com>
>>>>> Subject: Re: shindig php
>>>>> To: shindig-dev@incubator.apache.org
>>>>> Date: Tuesday, June 3, 2008, 10:02 AM
>>>>> Thanks Chris.
>>>>>
>>>>> I have fixed the rewrite problem, but when I
>> try the
>>>>> example
>>>>>
>>>>>
>>>>
>> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
>>>>>
>>>>> it returned empty page without error message,
>> I
>>>> checked and
>>>>> it died at calling $class->doGet() and
>> $servlet
>>>> returned
>>>>> GadgetRenderingServlet.
>>>>>
>>>>> What is the problem?
>>>>>
>>>>>
>>>>>
>>>>> --- On Mon, 6/2/08, Chris Chabot
>>>> <ch...@xs4all.nl>
>>>>> wrote:
>>>>>
>>>>>> From: Chris Chabot
>> <ch...@xs4all.nl>
>>>>>> Subject: Re: shindig php
>>>>>> To: shindig-dev@incubator.apache.org
>>>>>> Date: Monday, June 2, 2008, 5:02 PM
>>>>>> First of all make sure if it actually
>> reaches the
>>>>> index.php
>>>>>> file, if
>>>>>> not then the mod_rewrite part is your
>> problem.
>>>>>>
>>>>>> You can check this by putting a temporary
>>>>>> die("in index.php");
>>>>>> at the top of the index.php file just
>> after the
>>>>> <?php
>>>>>> bit.
>>>>>>
>>>>>> The second thing to check is the servlet
>> =>
>>>> url
>>>>> mapping
>>>>>> part, the
>>>>>> easiest way to find out is probably to put
>> some
>>>>> echo's
>>>>>> in the
>>>>>> index.php file, something like:
>>>>>>
>>>>>> // Try to match the request url to our
>> servlet
>>>> mapping
>>>>>> $servlet = false;
>>>>>> $uri = $_SERVER["REQUEST_URI"];
>>>>>> foreach ($servletMap as $url => $class)
>> {
>>>>>> echo "matching ".substr($uri,
>> 0,
>>>>>> strlen($url))." against $url<br
>>>>> />\n";
>>>>>> if (substr($uri, 0, strlen($url))
>> ==
>>>> $url) {
>>>>>> $servlet = $class;
>>>>>> break;
>>>>>> }
>>>>>> }
>>>>>>
>>>>>> and see what the output is ... chances are
>>>> there's
>>>>> some
>>>>>> obvious
>>>>>> difference that causes a string mismatch
>> ... fix
>>>> that
>>>>> and
>>>>>> your up and
>>>>>> running :)
>>>>>>
>>>>>> G'luck and let me know if that helped!
>>>>>>
>>>>>> -- Chris
>>>>>>
>>>>>>
>>>>>> On Jun 2, 2008, at 9:36 PM, xin zhang
>> wrote:
>>>>>>
>>>>>>> Hi
>>>>>>>
>>>>>>> I followed the instruction here
>>>>>>
>> http://incubator.apache.org/shindig/#preReqs
>>>>>>> and did the full checkout. I
>> didn't
>>>> create a
>>>>>> virtual host and
>>>>>>> modified web_prefix to
>>>> '/shindig/php' and
>>>>>> htaccess to RewriteRule (/
>>>>>>> shindig/php/*) index.php [L]
>>>>>>>
>>>>>>> But when I point my browser to
>>>>>>
>>>>>
>>>>
>> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
>>>>>>
>>>>>>> , I got Page Not Found error.
>>>>>>>
>>>>>>> What am I missing here?
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>>
>>>>>>>
>>>
>>>
>>>
>
>
>
Re: shindig php
Posted by xin zhang <xi...@yahoo.com>.
Thanks Chris.
Can you tell me what the name of that 4 major
social network sites? Are they all going to use shindig php version?
--- On Tue, 6/3/08, Chris Chabot <ch...@xs4all.nl> wrote:
> From: Chris Chabot <ch...@xs4all.nl>
> Subject: Re: shindig php
> To: shindig-dev@incubator.apache.org
> Date: Tuesday, June 3, 2008, 10:33 AM
> Hmm i'm the author of the php version of shindig so i
> might not have a
> completely unpartisan look at the situation, but i
> wouldn't say that
> the php server is 'far behind'.
>
> Feature wise i think we're a week or so behind the java
> version on the
> RESTful interface, but for the rest (pun intended) it has
> complete
> feature parity, and is being deployed on some 4 major
> social network
> sites in the coming weeks and months, meaning well over 100
> million
> people will be using it daily soonish.. So I would say
> it's usable and
> ready and if not we'll fix whatever is in the way of it
> being so asap :)
>
> -- Chris
>
> On Jun 3, 2008, at 5:25 PM, xin zhang wrote:
>
> > ok, I turn it off and it works.
> >
> > I have another question. What is status about shindig
> php server and
> > shindig java server. Is that true that the
> implentation of shindig
> > php is far behind the java version?
> >
> > Thanks
> >
> >
> > --- On Tue, 6/3/08, xin zhang
> <xi...@yahoo.com> wrote:
> >
> >> From: xin zhang <xi...@yahoo.com>
> >> Subject: Re: shindig php
> >> To: shindig-dev@incubator.apache.org
> >> Date: Tuesday, June 3, 2008, 10:14 AM
> >> The error message from the log file is:
> >>
> >> PHP Fatal error: Cannot clone object of class
> >> SimpleXMLElement due to
> >> 'zend.ze1_compatibility_mode' in
> >>
> /Library/WebServer/Documents/shindig/php/src/gadgets/
> >> GadgetSpecParser.php
> >> on line 31
> >>
> >>
> >>
> >>
> >> --- On Tue, 6/3/08, xin zhang
> <xi...@yahoo.com>
> >> wrote:
> >>
> >>> From: xin zhang <xi...@yahoo.com>
> >>> Subject: Re: shindig php
> >>> To: shindig-dev@incubator.apache.org
> >>> Date: Tuesday, June 3, 2008, 10:02 AM
> >>> Thanks Chris.
> >>>
> >>> I have fixed the rewrite problem, but when I
> try the
> >>> example
> >>>
> >>>
> >>
> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
> >>>
> >>> it returned empty page without error message,
> I
> >> checked and
> >>> it died at calling $class->doGet() and
> $servlet
> >> returned
> >>> GadgetRenderingServlet.
> >>>
> >>> What is the problem?
> >>>
> >>>
> >>>
> >>> --- On Mon, 6/2/08, Chris Chabot
> >> <ch...@xs4all.nl>
> >>> wrote:
> >>>
> >>>> From: Chris Chabot
> <ch...@xs4all.nl>
> >>>> Subject: Re: shindig php
> >>>> To: shindig-dev@incubator.apache.org
> >>>> Date: Monday, June 2, 2008, 5:02 PM
> >>>> First of all make sure if it actually
> reaches the
> >>> index.php
> >>>> file, if
> >>>> not then the mod_rewrite part is your
> problem.
> >>>>
> >>>> You can check this by putting a temporary
> >>>> die("in index.php");
> >>>> at the top of the index.php file just
> after the
> >>> <?php
> >>>> bit.
> >>>>
> >>>> The second thing to check is the servlet
> =>
> >> url
> >>> mapping
> >>>> part, the
> >>>> easiest way to find out is probably to put
> some
> >>> echo's
> >>>> in the
> >>>> index.php file, something like:
> >>>>
> >>>> // Try to match the request url to our
> servlet
> >> mapping
> >>>> $servlet = false;
> >>>> $uri = $_SERVER["REQUEST_URI"];
> >>>> foreach ($servletMap as $url => $class)
> {
> >>>> echo "matching ".substr($uri,
> 0,
> >>>> strlen($url))." against $url<br
> >>> />\n";
> >>>> if (substr($uri, 0, strlen($url))
> ==
> >> $url) {
> >>>> $servlet = $class;
> >>>> break;
> >>>> }
> >>>> }
> >>>>
> >>>> and see what the output is ... chances are
> >> there's
> >>> some
> >>>> obvious
> >>>> difference that causes a string mismatch
> ... fix
> >> that
> >>> and
> >>>> your up and
> >>>> running :)
> >>>>
> >>>> G'luck and let me know if that helped!
> >>>>
> >>>> -- Chris
> >>>>
> >>>>
> >>>> On Jun 2, 2008, at 9:36 PM, xin zhang
> wrote:
> >>>>
> >>>>> Hi
> >>>>>
> >>>>> I followed the instruction here
> >>>>
> http://incubator.apache.org/shindig/#preReqs
> >>>>> and did the full checkout. I
> didn't
> >> create a
> >>>> virtual host and
> >>>>> modified web_prefix to
> >> '/shindig/php' and
> >>>> htaccess to RewriteRule (/
> >>>>> shindig/php/*) index.php [L]
> >>>>>
> >>>>> But when I point my browser to
> >>>>
> >>>
> >>
> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
> >>>>
> >>>>> , I got Page Not Found error.
> >>>>>
> >>>>> What am I missing here?
> >>>>>
> >>>>> Thanks
> >>>>>
> >>>>>
> >>>>>
> >
> >
> >
Re: shindig php
Posted by Chris Chabot <ch...@xs4all.nl>.
Hmm i'm the author of the php version of shindig so i might not have a
completely unpartisan look at the situation, but i wouldn't say that
the php server is 'far behind'.
Feature wise i think we're a week or so behind the java version on the
RESTful interface, but for the rest (pun intended) it has complete
feature parity, and is being deployed on some 4 major social network
sites in the coming weeks and months, meaning well over 100 million
people will be using it daily soonish.. So I would say it's usable and
ready and if not we'll fix whatever is in the way of it being so asap :)
-- Chris
On Jun 3, 2008, at 5:25 PM, xin zhang wrote:
> ok, I turn it off and it works.
>
> I have another question. What is status about shindig php server and
> shindig java server. Is that true that the implentation of shindig
> php is far behind the java version?
>
> Thanks
>
>
> --- On Tue, 6/3/08, xin zhang <xi...@yahoo.com> wrote:
>
>> From: xin zhang <xi...@yahoo.com>
>> Subject: Re: shindig php
>> To: shindig-dev@incubator.apache.org
>> Date: Tuesday, June 3, 2008, 10:14 AM
>> The error message from the log file is:
>>
>> PHP Fatal error: Cannot clone object of class
>> SimpleXMLElement due to
>> 'zend.ze1_compatibility_mode' in
>> /Library/WebServer/Documents/shindig/php/src/gadgets/
>> GadgetSpecParser.php
>> on line 31
>>
>>
>>
>>
>> --- On Tue, 6/3/08, xin zhang <xi...@yahoo.com>
>> wrote:
>>
>>> From: xin zhang <xi...@yahoo.com>
>>> Subject: Re: shindig php
>>> To: shindig-dev@incubator.apache.org
>>> Date: Tuesday, June 3, 2008, 10:02 AM
>>> Thanks Chris.
>>>
>>> I have fixed the rewrite problem, but when I try the
>>> example
>>>
>>>
>> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
>>>
>>> it returned empty page without error message, I
>> checked and
>>> it died at calling $class->doGet() and $servlet
>> returned
>>> GadgetRenderingServlet.
>>>
>>> What is the problem?
>>>
>>>
>>>
>>> --- On Mon, 6/2/08, Chris Chabot
>> <ch...@xs4all.nl>
>>> wrote:
>>>
>>>> From: Chris Chabot <ch...@xs4all.nl>
>>>> Subject: Re: shindig php
>>>> To: shindig-dev@incubator.apache.org
>>>> Date: Monday, June 2, 2008, 5:02 PM
>>>> First of all make sure if it actually reaches the
>>> index.php
>>>> file, if
>>>> not then the mod_rewrite part is your problem.
>>>>
>>>> You can check this by putting a temporary
>>>> die("in index.php");
>>>> at the top of the index.php file just after the
>>> <?php
>>>> bit.
>>>>
>>>> The second thing to check is the servlet =>
>> url
>>> mapping
>>>> part, the
>>>> easiest way to find out is probably to put some
>>> echo's
>>>> in the
>>>> index.php file, something like:
>>>>
>>>> // Try to match the request url to our servlet
>> mapping
>>>> $servlet = false;
>>>> $uri = $_SERVER["REQUEST_URI"];
>>>> foreach ($servletMap as $url => $class) {
>>>> echo "matching ".substr($uri, 0,
>>>> strlen($url))." against $url<br
>>> />\n";
>>>> if (substr($uri, 0, strlen($url)) ==
>> $url) {
>>>> $servlet = $class;
>>>> break;
>>>> }
>>>> }
>>>>
>>>> and see what the output is ... chances are
>> there's
>>> some
>>>> obvious
>>>> difference that causes a string mismatch ... fix
>> that
>>> and
>>>> your up and
>>>> running :)
>>>>
>>>> G'luck and let me know if that helped!
>>>>
>>>> -- Chris
>>>>
>>>>
>>>> On Jun 2, 2008, at 9:36 PM, xin zhang wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> I followed the instruction here
>>>> http://incubator.apache.org/shindig/#preReqs
>>>>> and did the full checkout. I didn't
>> create a
>>>> virtual host and
>>>>> modified web_prefix to
>> '/shindig/php' and
>>>> htaccess to RewriteRule (/
>>>>> shindig/php/*) index.php [L]
>>>>>
>>>>> But when I point my browser to
>>>>
>>>
>> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
>>>>
>>>>> , I got Page Not Found error.
>>>>>
>>>>> What am I missing here?
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>>
>
>
>
Re: shindig php
Posted by xin zhang <xi...@yahoo.com>.
ok, I turn it off and it works.
I have another question. What is status about shindig php server and shindig java server. Is that true that the implentation of shindig php is far behind the java version?
Thanks
--- On Tue, 6/3/08, xin zhang <xi...@yahoo.com> wrote:
> From: xin zhang <xi...@yahoo.com>
> Subject: Re: shindig php
> To: shindig-dev@incubator.apache.org
> Date: Tuesday, June 3, 2008, 10:14 AM
> The error message from the log file is:
>
> PHP Fatal error: Cannot clone object of class
> SimpleXMLElement due to
> 'zend.ze1_compatibility_mode' in
> /Library/WebServer/Documents/shindig/php/src/gadgets/GadgetSpecParser.php
> on line 31
>
>
>
>
> --- On Tue, 6/3/08, xin zhang <xi...@yahoo.com>
> wrote:
>
> > From: xin zhang <xi...@yahoo.com>
> > Subject: Re: shindig php
> > To: shindig-dev@incubator.apache.org
> > Date: Tuesday, June 3, 2008, 10:02 AM
> > Thanks Chris.
> >
> > I have fixed the rewrite problem, but when I try the
> > example
> >
> >
> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
> >
> > it returned empty page without error message, I
> checked and
> > it died at calling $class->doGet() and $servlet
> returned
> > GadgetRenderingServlet.
> >
> > What is the problem?
> >
> >
> >
> > --- On Mon, 6/2/08, Chris Chabot
> <ch...@xs4all.nl>
> > wrote:
> >
> > > From: Chris Chabot <ch...@xs4all.nl>
> > > Subject: Re: shindig php
> > > To: shindig-dev@incubator.apache.org
> > > Date: Monday, June 2, 2008, 5:02 PM
> > > First of all make sure if it actually reaches the
> > index.php
> > > file, if
> > > not then the mod_rewrite part is your problem.
> > >
> > > You can check this by putting a temporary
> > > die("in index.php");
> > > at the top of the index.php file just after the
> > <?php
> > > bit.
> > >
> > > The second thing to check is the servlet =>
> url
> > mapping
> > > part, the
> > > easiest way to find out is probably to put some
> > echo's
> > > in the
> > > index.php file, something like:
> > >
> > > // Try to match the request url to our servlet
> mapping
> > > $servlet = false;
> > > $uri = $_SERVER["REQUEST_URI"];
> > > foreach ($servletMap as $url => $class) {
> > > echo "matching ".substr($uri, 0,
> > > strlen($url))." against $url<br
> > />\n";
> > > if (substr($uri, 0, strlen($url)) ==
> $url) {
> > > $servlet = $class;
> > > break;
> > > }
> > > }
> > >
> > > and see what the output is ... chances are
> there's
> > some
> > > obvious
> > > difference that causes a string mismatch ... fix
> that
> > and
> > > your up and
> > > running :)
> > >
> > > G'luck and let me know if that helped!
> > >
> > > -- Chris
> > >
> > >
> > > On Jun 2, 2008, at 9:36 PM, xin zhang wrote:
> > >
> > > > Hi
> > > >
> > > > I followed the instruction here
> > > http://incubator.apache.org/shindig/#preReqs
> > > > and did the full checkout. I didn't
> create a
> > > virtual host and
> > > > modified web_prefix to
> '/shindig/php' and
> > > htaccess to RewriteRule (/
> > > > shindig/php/*) index.php [L]
> > > >
> > > > But when I point my browser to
> > >
> >
> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
> > >
> > > > , I got Page Not Found error.
> > > >
> > > > What am I missing here?
> > > >
> > > > Thanks
> > > >
> > > >
> > > >
Re: shindig php
Posted by xin zhang <xi...@yahoo.com>.
The error message from the log file is:
PHP Fatal error: Cannot clone object of class SimpleXMLElement due to 'zend.ze1_compatibility_mode' in /Library/WebServer/Documents/shindig/php/src/gadgets/GadgetSpecParser.php on line 31
--- On Tue, 6/3/08, xin zhang <xi...@yahoo.com> wrote:
> From: xin zhang <xi...@yahoo.com>
> Subject: Re: shindig php
> To: shindig-dev@incubator.apache.org
> Date: Tuesday, June 3, 2008, 10:02 AM
> Thanks Chris.
>
> I have fixed the rewrite problem, but when I try the
> example
>
> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
>
> it returned empty page without error message, I checked and
> it died at calling $class->doGet() and $servlet returned
> GadgetRenderingServlet.
>
> What is the problem?
>
>
>
> --- On Mon, 6/2/08, Chris Chabot <ch...@xs4all.nl>
> wrote:
>
> > From: Chris Chabot <ch...@xs4all.nl>
> > Subject: Re: shindig php
> > To: shindig-dev@incubator.apache.org
> > Date: Monday, June 2, 2008, 5:02 PM
> > First of all make sure if it actually reaches the
> index.php
> > file, if
> > not then the mod_rewrite part is your problem.
> >
> > You can check this by putting a temporary
> > die("in index.php");
> > at the top of the index.php file just after the
> <?php
> > bit.
> >
> > The second thing to check is the servlet => url
> mapping
> > part, the
> > easiest way to find out is probably to put some
> echo's
> > in the
> > index.php file, something like:
> >
> > // Try to match the request url to our servlet mapping
> > $servlet = false;
> > $uri = $_SERVER["REQUEST_URI"];
> > foreach ($servletMap as $url => $class) {
> > echo "matching ".substr($uri, 0,
> > strlen($url))." against $url<br
> />\n";
> > if (substr($uri, 0, strlen($url)) == $url) {
> > $servlet = $class;
> > break;
> > }
> > }
> >
> > and see what the output is ... chances are there's
> some
> > obvious
> > difference that causes a string mismatch ... fix that
> and
> > your up and
> > running :)
> >
> > G'luck and let me know if that helped!
> >
> > -- Chris
> >
> >
> > On Jun 2, 2008, at 9:36 PM, xin zhang wrote:
> >
> > > Hi
> > >
> > > I followed the instruction here
> > http://incubator.apache.org/shindig/#preReqs
> > > and did the full checkout. I didn't create a
> > virtual host and
> > > modified web_prefix to '/shindig/php' and
> > htaccess to RewriteRule (/
> > > shindig/php/*) index.php [L]
> > >
> > > But when I point my browser to
> >
> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
> >
> > > , I got Page Not Found error.
> > >
> > > What am I missing here?
> > >
> > > Thanks
> > >
> > >
> > >
Re: shindig php
Posted by xin zhang <xi...@yahoo.com>.
Thanks Chris.
I have fixed the rewrite problem, but when I try the example
http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
it returned empty page without error message, I checked and it died at calling $class->doGet() and $servlet returned GadgetRenderingServlet.
What is the problem?
--- On Mon, 6/2/08, Chris Chabot <ch...@xs4all.nl> wrote:
> From: Chris Chabot <ch...@xs4all.nl>
> Subject: Re: shindig php
> To: shindig-dev@incubator.apache.org
> Date: Monday, June 2, 2008, 5:02 PM
> First of all make sure if it actually reaches the index.php
> file, if
> not then the mod_rewrite part is your problem.
>
> You can check this by putting a temporary
> die("in index.php");
> at the top of the index.php file just after the <?php
> bit.
>
> The second thing to check is the servlet => url mapping
> part, the
> easiest way to find out is probably to put some echo's
> in the
> index.php file, something like:
>
> // Try to match the request url to our servlet mapping
> $servlet = false;
> $uri = $_SERVER["REQUEST_URI"];
> foreach ($servletMap as $url => $class) {
> echo "matching ".substr($uri, 0,
> strlen($url))." against $url<br />\n";
> if (substr($uri, 0, strlen($url)) == $url) {
> $servlet = $class;
> break;
> }
> }
>
> and see what the output is ... chances are there's some
> obvious
> difference that causes a string mismatch ... fix that and
> your up and
> running :)
>
> G'luck and let me know if that helped!
>
> -- Chris
>
>
> On Jun 2, 2008, at 9:36 PM, xin zhang wrote:
>
> > Hi
> >
> > I followed the instruction here
> http://incubator.apache.org/shindig/#preReqs
> > and did the full checkout. I didn't create a
> virtual host and
> > modified web_prefix to '/shindig/php' and
> htaccess to RewriteRule (/
> > shindig/php/*) index.php [L]
> >
> > But when I point my browser to
> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
>
> > , I got Page Not Found error.
> >
> > What am I missing here?
> >
> > Thanks
> >
> >
> >
Re: shindig php
Posted by Chris Chabot <ch...@xs4all.nl>.
First of all make sure if it actually reaches the index.php file, if
not then the mod_rewrite part is your problem.
You can check this by putting a temporary
die("in index.php");
at the top of the index.php file just after the <?php bit.
The second thing to check is the servlet => url mapping part, the
easiest way to find out is probably to put some echo's in the
index.php file, something like:
// Try to match the request url to our servlet mapping
$servlet = false;
$uri = $_SERVER["REQUEST_URI"];
foreach ($servletMap as $url => $class) {
echo "matching ".substr($uri, 0, strlen($url))." against $url<br />\n";
if (substr($uri, 0, strlen($url)) == $url) {
$servlet = $class;
break;
}
}
and see what the output is ... chances are there's some obvious
difference that causes a string mismatch ... fix that and your up and
running :)
G'luck and let me know if that helped!
-- Chris
On Jun 2, 2008, at 9:36 PM, xin zhang wrote:
> Hi
>
> I followed the instruction here http://incubator.apache.org/shindig/#preReqs
> and did the full checkout. I didn't create a virtual host and
> modified web_prefix to '/shindig/php' and htaccess to RewriteRule (/
> shindig/php/*) index.php [L]
>
> But when I point my browser to http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
> , I got Page Not Found error.
>
> What am I missing here?
>
> Thanks
>
>
>