PHP execution with SSI

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
nadeembabar
Forum Newbie
Posts: 4
Joined: Fri May 12, 2006 5:04 pm

PHP execution with SSI

Post 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
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

are the pages that these lines are in php or html?
nadeembabar
Forum Newbie
Posts: 4
Joined: Fri May 12, 2006 5:04 pm

Post by nadeembabar »

Thanks you for reply,

These are html files....
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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:
nadeembabar
Forum Newbie
Posts: 4
Joined: Fri May 12, 2006 5:04 pm

Post 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.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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)
Post Reply