Image

Imagejaypoc wrote in Imagephp

SSI + PHP = HEADACHE

I have been running Apache 1.3 for years. I've upgraded my server OS and the new one came with Apache 2.0. I copied all my websites over, but I'm having trouble with one of them. I'm sure there's some configuration option I'm overlooking:

When I try to include 2 PHP files using SSI, Apache processes the first file as PHP and the second as HTML.

I created a short sample file:

-----
<HTML><BODY>
<!--#include virtual = "a.php" -->
<!--#include virtual = "b.php" -->
</BODY></HTML>
-----

The source of the output of that file looks like this:

-----
<HTML><BODY>
Output of a.php
<?php
print ("Output of b.php");
?>
</BODY></HTML>
-----

Any ideas why Apache won't process a second PHP file? Changing the page to a PHP file and using PHP includes works fine, but this would mean updating the entire site in PHP as many of the pages are HTML, but have PHP components plugged in through includes.