View Full Version : Ssi & Php
Damian
05-14-2001, 11:30 PM
Hello,
I'm trying to insert an SSI header into a .php page -- but it's not working.
I imagine I have to set up something in .htaccess or add it as a handler in the control panel...any ideas?
Thanks!
WackyMan
[EDIT: just correcting some spelling :)]
Odium
05-14-2001, 11:54 PM
Maybe try adding the .php extension with the handler "server-parsed"?
Damian
05-15-2001, 12:01 AM
Well, I tried that.
This is what my 'Apache Handlers' page says:
User Defined Handlers
.php server-parsed
--------------------------------------------------------------------------------
System Defined Handlers
.cgi .pl cgi-script
.shtml server-parsed
And when I go to the specific php page that I want an ssi header included in, it prompts me to download the file instead of opening it in the browser.
http://www.downsizeme.com/contact.php
MauriceToo
05-15-2001, 12:54 AM
Why not simply use PHP's include() function? Is it that the SSI you have in mind is fetching info you couldn't otherwise get from PHP? Then again, I can't imagine what that could be...
Just a thought...
Damian
05-15-2001, 01:59 AM
Maurice,
That did the trick! Thanks :)
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.