Re: Layout and dynamic Scripts (not LayoutHeader / LayoutFooter) returns zero byte page.

Markus Bordihn <[email protected]> Sun, 06 Jan 2008 12:43:30 +0100
Newsgroups gmane.comp.apache.mod-layout
Message-ID <[email protected]>
Hi Brian,
thanks for your answer, I have installed this Version this version is a 
little bit faster ;) but the error is the same :/

Can you confirm that it is possible to use CGI with the "Layout" 
directive or is this only possible with "LayoutHeader" and "LayoutFooter".
I try a perl and a php script with different content header but I get a 
zero page.

Apache.conf
...
Layout "<!-- JSHead -->" /jshead.php
...

Page:
http://animearchive.de/test.htm

PHP:
http://animearchive.de/jshead.php
(Comment TAG)

The rest of the Webpage worked fine http://animearchive.de .

Worked fine:
Layout "<!-- JSHead -->" /../../../../jshead.php
-> Display file content

Layout "<!-- JSHead -->" "Test"
-> Display Test

Layout "<!-- JSHead -->" /jshead_noexisting_file.php
-> Return 404 Error in the Apache Log

Thanks and Greetings,
- Markus

Brian Aker schrieb:
> Hi!
>
> Pull the latest version by going here:
> http://hg.tangent.org/mod_layout-5.0/
>
> And clicking on "gz"
>
> For directives try this:
> AddOutputFilterByType LAYOUT text/html
>
> Cheers,
> 	-Brian
>
> On Jan 5, 2008, at 4:56 AM, Markus Bordihn wrote:
>
>   
>> Hi all,
>> I try several things to get following working, without success:
>>
>> Apache Config
>> ...
>>  AddOutputFilter LAYOUT .htm
>>  LayoutComment Off
>>  ...
>>  Layout "<!-- JSHead -->" /jshead.php
>> ...
>>
>> /jshead.php
>> ...
>> <?php
>> echo "test 123";
>> ?>
>> ...
>>
>> The Webserver return a zero content page with no content :/
>> When i remove the line all worked correct, also in the error log there
>> is no Error and when I insert a php error in the file, this error  
>> shows
>> up in the error log.
>>
>> I would be happy when someone have try this allready or if somebody  
>> know
>> why this is not possible ?
>>
>> The Problem is i cant used "LayoutHeader" or "LayoutFooter" because  
>> this
>> should be in the <head>...</head> of the html document.
>>
>> I use Apache 2.2 and the lastest Mod_Layout Version.
>>
>> Thanks a lot and Greetings,
>> - Markus
>> _______________________________________________
>> Mod_layout mailing list
>> [email protected]
>> http://lists.tangent.org/mailman/listinfo/mod_layout
>>     
>
> --
> _______________________________________________________
> Brian "Krow" Aker, brian at tangent.org
> Seattle, Washington
> http://krow.net/                     <-- Me
> http://tangent.org/                <-- Software
> http://exploitseattle.com/    <-- Fun
> _______________________________________________________
> You can't grep a dead tree.
>
>
> _______________________________________________
> Mod_layout mailing list
> [email protected]
> http://lists.tangent.org/mailman/listinfo/mod_layout
>
>