Web Hosting Talk







View Full Version : SSI and Plesk ...


BlazeBox
01-28-2001, 05:00 PM
Hey all,

I recently got a shiny new server at dtwebworks which I am delighted with, and I got Plesk installed on that.

It took me some time to get to understand everything Plesk does to a server (like MySQL ...) but I managed to understand that (quite an accomplishment I think .. ;) ).

I remain to have one problem, though: SSI is only working in .SHTML files. I tried changing things in Apache, but to no avail, so this must be a Pleskish problem. The Plesk helpdesk is very slow in response, so I thought I'd ask you if you guys knew how to fix this, since not being able to use includes in your PHP files is umm ... rather annoying :)

So as a roundup: even with SSI support "on" in Plesk, SSI will only work in .SHTML files -> how to get it to work in .PHP, .HTML and other file types? help!

>>> <!--#include virtual="ad.php"--> <<< does not work in PHP files!

Any heads up on this problem?

Thanks!


[Edited by BlazeBox on 01-28-2001 at 04:31 PM]

Chicken
01-28-2001, 05:26 PM
This really isn't an answer to your question, but a question itself...

Why not use:

<?php include("/absolute/path/to/file.txt"); ?>

???

DaveC#
01-28-2001, 05:29 PM
>>> <!--#include virtual="ad.php"--> <<< does not work in PHP files!

That's not a problem with APACHE. You can not use APACHE SSI in PHP files.

Using the php require or include statements will give you the functionality of ssi.

Check the php manual.