From: elmorilloana on
htaccess file code lets server parse server side include .shtml as .html with
this:
AddType text/html .html
AddHandler server-parsed .html
it makes me happy so i can continue using .html extensions on all pages.

however, same server side include statement in .php pages is not recognized.
what do i need to add to htaccess file so ssi in .php pages to be recognized??
(not php code in an html page but pure php extension; i.e. i want to use the
same ssi
for header used in .html pages to be in .php pages.)

browsed to find this answer but must not be using correct key words as have
found every
answer but this one.

thanks.

From: Alan on


> same server side include statement in .php pages is not recognized.

Use a php include statement instead of ssi directive.

--
Alan
Adobe Community Expert, dreamweaver

http://www.adobe.com/communities/experts/



From: elmorilloana on
thanks for the tip. for anyone who finds this thread, this works:
the include statement for a .php page:
<?php include("test.txt"); ?>