
LostCoder
User
Nov 27, 2006, 5:23 PM
Post #4 of 5
(822 views)
Shortcut
|
|
Re: [Ginslinger] Including a php file
[In reply to]
|
Can't Post
|
|
I have posted a technique i use on my sites that have .htm and require PHP processing... It works well for allowing us to publish dynamic advertisements from servers like Linkworth.com and others.. It may work for your PHP issue as well: ---------------------------------------------- For websites hosted on Apache, a workaround to allow php processing with .htm and .html files is possible by updating the .htaccess file in the root web directory (public_html, www, etc.). Access your root web folder and find the file called .htaccess. If you are unable to locate this file, it can be created through most administrator control panels in the File Manager area. If you are unable to locate or create the .htaccess file contact your hosting company for instructions. Edit the .htaccess file to include the following code: RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html .shtml Once the changes are saved, php processing should be allowed on all pages of your website ending in the .php, .htm, .shtm or .html extensions. source: www.LinkWorth.com ------------------- Hope this helps. Thanks. LC
|