Forum Moderators: phranque

Message Too Old, No Replies

php include not working

         

Rightz

8:01 am on Feb 8, 2008 (gmt 0)

10+ Year Member



I've copied and paste the same page code from one side to another. The original php includes worked, copied onto another site they dont.

Why not?

.htaccess on both sites:


AddType text/html .shtml .html
AddHandler server-parsed .shtml .html
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html .shtml

include code on both sites:


<?
include('menu2.shtml');
?>

I've tried using .php instead of .shtml, I've tried changing the .htaccess files.

Why should the same code work on one site and not the other?

Thanks

coopster

8:07 pm on Feb 9, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Try using AddHandler, not AddType.
[webmasterworld.com...]