views:

271

answers:

2
+1  A: 

I've never seen SSI used with PHP in this way so this is something of a long shot, but can you try changing:

AddOutputFilter INCLUDES .php

to:

AddOutputFilterByType INCLUDES text/html

the reason it's not working is that your files no longer have a .php extension (or any extension), since you're routing everything through index.php. The change I've suggested will filter all text/html output (which should include PHP) though the SSI parser, instead of doing so by extension.

Tim Fountain
Hmm... That didn't work .. It didn't break anything, but it didn't help anything either...
Gotys
I've tried this locally now and it does seem to work for me, as long as the PHP file I include is not parsed by ZF. I assume your test.php file is at public_html/ssi/test.php ? What method are you using to access the query params in test.php?
Tim Fountain
+2  A: 

Instead of using the SSI include, you could try using the php virtual function:

virtual ("/ssi/test.php?x=hello");

via http://www.zytrax.com/tech/php/php_ssi.htm

What kind of caching requires you to use SSI? Couldn't you just use something like Zend_Cache_Frontend_Output?

pharalia
I tried your suggestion, but that doenst' do anything .. I will keep looking into this, meanwhile to answer your question:My application will heavily use Varnish for caching, Varnish uses something they call ESI, similar to SSI . But I want to write my application in a way, so that if Varnish fails for whatever reason, the application will fallback from ESI to SSI automatically. That's why I need to make the SSI work somehow..but no luck yet.
Gotys