Your HostICan Community  


Go Back   Your HostICan Community > Programming & Design > PHP / MySQL Assistance
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

PHP / MySQL Assistance We understand. Not all of you are experienced programmers, but some of you are highly skilled at coding. So we've set aside this forum so you can ask questions, and provide answers to the most commonly asked PHP / MySQL issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-30-2008, 01:34 PM
Junior Member
 
Join Date: Apr 2008
Posts: 4
Default .htaccess question

All,

On an old host, I set up my files so that I could include PHP code in .html files. To do this, I used the following code in .htaccess:

<Files *.html>
ForceType application/x-httpd-php
</Files>
RemoveHandler .html .htm
AddHandler application/x-httpd-php .html


When I put this in the .htaccess file on the Hostican server, though, I view source on the page and see the PHP statements (it's not translating the PHP).

Any ideas?
Reply With Quote
  #2 (permalink)  
Old 04-30-2008, 01:36 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,644
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Hollywood, Welcome to the HostICan Community:

HostICan - Support - Pre-Sales, E-Mail, and so many more answers... :: How do I make PHP work in .html?
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #3 (permalink)  
Old 04-30-2008, 01:38 PM
Junior Member
 
Join Date: Apr 2008
Posts: 4
Default

I tried this with no luck Denis. I'll try again, though.
Reply With Quote
  #4 (permalink)  
Old 04-30-2008, 01:53 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,644
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by Hollywood View Post
I tried this with no luck Denis. I'll try again, though.
Have you tried:

AddHandler application/x-httpd-php5 .html <-- that should work
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:11 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

Copyright © 2003 - 2008 HostICan. All Rights Reserved.