homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

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

PHP Server Side Scripting Forum

Quick PHP Includes Question

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


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?




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

Did you restart the server?


 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...



 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


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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved