PHP code in HTML files

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • barbroberts
    Sergeant Major

    • Feb 2007
    • 91

    PHP code in HTML files

    Is it possible to process PHP code in the HTML files (i.e. files with the .html extension) on your servers ?

    Do I need any special instructions?
    Barbara
    http://www.gardenpartyteas.com
    http://www.elizabethbaileyportraits.com

  • Vasili
    Moderator

    • Mar 2006
    • 14683

    #2
    Re: PHP code in HTML files

    Define specifically the application you are attempting, and the type of foundation (website...as in Blue Voda, Dreamweaver/HTML, scripted as a forum/cart/WP, etc.).
    . VodaWebs....Luxury Group
    * Success Is Potential Realized *

    Comment

    • navaldesign
      General & Forum Moderator

      • Oct 2005
      • 12080

      #3
      Re: PHP code in HTML files

      You can do this ONLY if you create a .htaccess file that will "tell" the server to process files that have the .html as .php files.

      If this is a requirement by the company you purchased the script from, or by your programmer, he will certainly know how to create such a .htaccess file.


      However I don't understand the purpose for this, why shouldn't your pages have the .php extension ?
      Navaldesign
      Logger Lite: Low Cost, Customizable, multifeatured Login script
      Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
      DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
      Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

      Comment

      • barbroberts
        Sergeant Major

        • Feb 2007
        • 91

        #4
        Re: PHP code in HTML files

        My new shopping cart is AJAX based. The php company provides coding that will enable my store to be indexed. I have asked them to install this for me as it is beyond my ability.

        Hopefully the information you have provided here will give them the necessary guidance. Thank you.
        Barbara
        http://www.gardenpartyteas.com
        http://www.elizabethbaileyportraits.com

        Comment

        Working...
        X