Using php on html pages

  • DavyDuke17
  • Graduate
  • Graduate
  • DavyDuke17
  • Posts: 166

Post 3+ Months Ago

I have a problem, as I learn more about php and its uses the more I look to use it on my site. However, there are pages that I now want to use php on but are htm files and are linked as htm on every other page on my site and some have dmoz listings as htm. So I am trying to have it so that the htm files are able to convert php code. I looked around searching and believe I have to edit the htacccess file on my server, however I do not want to edit it wrong and have everything screwed up, and can't even find where it is on my server. Can someone help me with what I have to do to edit it?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • DavyDuke17
  • Graduate
  • Graduate
  • DavyDuke17
  • Posts: 166

Post 3+ Months Ago

Ahh, found it through my cpanel, it wasn't showing up in my ftp client. Here is the code in it now:

Code: [ Select ]
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
#The next line modified by DenyIP
order allow,deny
#The next line modified by DenyIP
#deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.sportznow.com
AuthUserFile /home2/vferraro/public_html/_vti_pvt/service.pwd
AuthGroupFile /home2/vferraro/public_html/_vti_pvt/service.grp

<Files 403.shtml>
order allow,deny
allow from all
</Files>
  1. # -FrontPage-
  2. IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
  3. <Limit GET POST>
  4. #The next line modified by DenyIP
  5. order allow,deny
  6. #The next line modified by DenyIP
  7. #deny from all
  8. allow from all
  9. </Limit>
  10. <Limit PUT DELETE>
  11. order deny,allow
  12. deny from all
  13. </Limit>
  14. AuthName www.sportznow.com
  15. AuthUserFile /home2/vferraro/public_html/_vti_pvt/service.pwd
  16. AuthGroupFile /home2/vferraro/public_html/_vti_pvt/service.grp
  17. <Files 403.shtml>
  18. order allow,deny
  19. allow from all
  20. </Files>


Can someone tell me how to edit it have embedded php code in htm pages be converted?

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 40 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.