Page 1 of 1

PHP execution with SSI

Posted: Thu Aug 31, 2006 12:38 pm
by nadeembabar
Hi
I've recently moved to new server, my sites pages uses the SSI

Code: Select all

<!--#include virtual="/includes/header.php"-->
and

Code: Select all

<!--#include virtual="/includes/footer.php"-->
after moving I am getting the blank pages in result. I tried to include the html file it was successfuly included

Code: Select all

<!--#include virtual="/includes/footer.html"-->
. I only can include .html or .htm files. My site coding is in php files (header & footer). It is 5000 pages in my site, all are using the ssi to include the php header footer. Please help me to sortout this problem or any alternative method or something else.

Thanks in advance
Nadeem

Posted: Thu Aug 31, 2006 12:41 pm
by Luke
are the pages that these lines are in php or html?

Posted: Thu Aug 31, 2006 12:48 pm
by nadeembabar
Thanks you for reply,

These are html files....

Posted: Thu Aug 31, 2006 12:51 pm
by Luke
If it's possible to convert them to php files, you can just do php includes instead... otherwise I'd talk to your hosting provider to see why it won't include php files with ssi

EDIT: Unless of course you are your hosting provider... in which case... I'm unsure what you should do :oops:

Posted: Thu Aug 31, 2006 1:03 pm
by nadeembabar
As I've not much knowledge of webservers, I was thinking that it can be done by adding .htacess commands. Now I am going to email my hosting compnay.

Thank you very much Guru to guide me.

Posted: Thu Aug 31, 2006 1:10 pm
by Luke
:lol: Just cuz it says so under my name doesn't mean it's true... I'm definately no guru... but glad I could help (did I even really help lol)