Apache Server configuration support - Re: Combining SSI, PHP, and CGI in Apache 2.x

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2005 > Re: Combining SSI, PHP, and CGI in Apache 2.x





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Combining SSI, PHP, and CGI in Apache 2.x
Mxsmanic

2005-01-20, 5:59 pm

Chung Leong writes:

> I looked at the php Apache2 filter source code a little more closely. Here's
> some qualification to what I said: php will parse a piece of data in the
> output bucket brigade if comes in a file bucket. The core output filter
> sends a requested file down the pipeline as a file bucket, so that gets
> parsed. If you write an Apache2 filter that attaches a header file and a
> footer file to the output, those too would get parsed. If the data is stored
> in a memory bucket, it won't get parsed by PHP.


I don't understand what that tells me.

> I'm not too sure what you're trying to achieve here, but I think <#include
> virtual="/something.php"> is what you need.


If I change the #include virtual="/something.html" to #include
virtual="/something.php", I get

[an error occurred while processing this directive]

instead of the included file.

I tried adding .html and .htm to .php in the list of extensions on

AddType application/x-httpd-php .php

I get segmentation faults in the httpd processes each time they try to
process anything with an #include directive in it.

--
Transpose hotmail and mxsmanic in my e-mail address to reach me directly.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com