| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Quick PHP Includes Question|
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?
Did you restart the server?
Yep, thank you, that was exactly the problem. I thought the change would happen in real time...
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