Welcome to WebmasterWorld Guest from 54.196.232.162

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Quick PHP Includes Question

     
9:03 pm on Jul 21, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 15, 2002
posts:971
votes: 0


Hi-

I'm running a local server on Windows 2000...
I simply want to use an include in my .html file.

In whatever.html:

<?php include "nav.inc"; ?>

------------------------------

I may be reading the documentation wrong, but I thought I could go into httpd.conf and add the .html extension to the addtype line. Nothing happens at all.

AddType application/x-httpd-php .php4 .php .htm .php3 .inc .html

-What other files might need to be modified?
-Can this be done?

Thanks-
M

10:04 pm on July 21, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:Sept 20, 2001
posts:478
votes: 0


Did you restart the server?
5:22 am on July 22, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 15, 2002
posts:971
votes: 0


Yep, thank you, that was exactly the problem. I thought the change would happen in real time...

M

9:03 pm on July 23, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 8, 2001
posts:926
votes: 0


Just a quick additional tip.

If your on a hosting package and only have access to .htaccess then this is the syntax... also no server restart required.

AddType x-mapp-php4 php php3 html

Gethan