Home | Gallery | Forum | Services | Webmail | Archive | Links | Contact Us | About Us
OS2 World.Com Forum
OS2 World.Com Online Discussion Forum.
Index / OS/2 - General / Networking
author message
php scripts together with html
Post a new topic Reply to this Topic Printable Version of this Topic Forward this Topic to your Friend Topic Commands (for administrator or moderators only)
zionite
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 26
since: 02 Jan, 2001
1. php scripts together with html
Reply to this topic with quote Modify your message
When using PHP-scripts and if one wants to keep the file sufix *.html or *.shtml instead of using *.php. How do you config Apache to handle that?

Questions is how do I config Apache to run the php-code when using *.html instead of *.php as file sufix? I've looked around in httpd.conf and php config files I cant find anything that would make this possible. But, it is possible! But, How?!
I've tried to add following handler to httpd.conf:

AddType application/x-httpd-php .html

and that didn't make any different. Also got suggestions to update .htaccess with following:

RemoveHandler .html
AddType application/x-httpd-php .html

I that didn't work either. It might be that above suggestions should work out, the question is what else have I missed out?

Date: 02 Jan, 2001 on 15:46
php scripts together with html
Post a new topic Reply to this Topic Printable Version of this Topic Forward this Topic to your Friend Topic Commands (for administrator or moderators only)
All times are CET+1. < Prev. | P. 1 | Next >
Go to:
 

Powered by UltraBoard 2000 Standard Edition,
Copyright © UltraScripts.com, Inc. 1999-2000.
Home | Gallery | Forums | Services | Webmail | Archive | Links | Contact Us | About Us
OS2 World.Com 2000-2004