| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|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.
<?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
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved