I have a site with lots of SSI.
I am just learning php and I need to include some in my site. I think the easiest thing to do would be to change the .shtml to .php and find some way of getting the SSI to work with php. However the examples i have seen have not quite done the job, but I'm sure someone has done the same thing I am trying to do.
Basically I have a <!--#include virtual="/sitecore/myfile.txt"-->
That puts that text file right in that particular spot on the page.
How do I get that text file be included in php?
I have tried "include" and I have tried "fopen" for example.
<?php
$fp = fopen("http://www.mysite.com/sitecore/myfile.txt", "r");
fclose($fp);
?>
but I'm just not getting the text to display. I'm missing something, but haven't figured it out yet, help please!