I run a Perl website and I am trying to get on my home page one piece of php code, the usual php include, can anyone tell me how to do that please My home page URL uses SSI index.shtml which loads <!--#exec cgi="/dir.cgi"--> My home page template is located at /data/templates/Default/FrontPage.html My domain if it helps www.web-bin.com
I know that I was mearly pointing out the home page dir.cgi file. I can use SSI to call a php file, you sure ?
I don't think so. You said: I guess that confused me. I thought you wanted to include this page. You can set an htaccess file, to make PHP parse shtml files too. That's probably the easiest way. AddType application/x-httpd-php .shtml Code (markup):
Ok my bad, maybe, the dir.cgi is my start page to load the home page template above. If you look at my template FrontPage.html I want to drop the [[featured_home_title]] and replace that with for example <?php include './somefile.php'; ?> I have been trying everything I know which isn't much so I thought I would ask here.