Welcome to WebmasterWorld Guest from 50.19.135.67

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Quick PHP Includes Question

     

madcat

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

WebmasterWorld Senior Member 10+ Year Member



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

SmallTime

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

10+ Year Member



Did you restart the server?

madcat

5:22 am on Jul 22, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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

M

gethan

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

WebmasterWorld Senior Member 10+ Year Member



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

 

Featured Threads

Hot Threads This Week

Hot Threads This Month