homepage Welcome to WebmasterWorld Guest from 107.21.186.38
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Accredited PayPal World Seller

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library : Charter : Moderators: coopster & eelixduppy & jatar k

PHP Server Side Scripting Forum

    
Quick PHP Includes Question
madcat




msg:1263921
 9:03 pm on Jul 21, 2002 (gmt 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

 

SmallTime




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

Did you restart the server?

madcat




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

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

M

gethan




msg:1263924
 9:03 pm on Jul 23, 2002 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved