[horde] Registry calls fail within an SSI included file

Jan Schneider jan at horde.org
Fri Jun 15 12:44:23 UTC 2007


Zitat von Christoph Freundl <Christoph.Freundl at informatik.uni-erlangen.de>:

> Hi,
>
> I want to use the Kronolith API to embed calendar events on a webpage.
> The basic page layout is built using Server Side Includes (and there
> is no way getting rid of it as the layout is "prescribed"). Within the
> pages I can call php scripts using the SSI #include directive.
>
> Consider the two files horde.php and horde.shtml attached below. The
> php file is just taken from the Horde Wiki page "LegacyApps". When I
> call the horde.php script directly from a web browser, the output is
> just what you expect. But when you open the shtml page, weird
> characters appear. From what I tried, this happens also with other
> registry calls, so the problem is not restricted to the Kronolith API.
> I used Horde 3.1.4, Kronolith 2.1.5, Apache 2.2.3 and tried with PHP
> 5.1.2 and 5.2.0.

What weird characters?

> I am a beginner in using the Horde APIs but somewhat experienced in
> PHP, so I dived into the Horde code and tracked down the problem down
> to the call of "call_user_func_array" in Registry::callByPackage. Due
> to my limited experience I do not know whether this is a more general
> PHP problem, an Apache SSI issue, or if it is specific to Horde.
> However, including the call.php script attached below in a shtml page
> works fine.

Since calling horde.php directly works fine, I'd say it's an SSI  
issue. But since your description is pretty vague, it's hard to tell.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list