Parsing PHP with HTML file extension

Discussion in 'Programming' started by botcare, Jul 31, 2008.

  1. #1
    Hi all :

    I need someone to help to put .php code to display at .html site.


    Thanks in advance
     
    botcare, Jul 31, 2008 IP
  2. serialCoder

    serialCoder Guest

    Best Answers:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    i think its not possible, unless your webserver is configured to run files that have a .html extension as php files
     
    serialCoder, Jul 31, 2008 IP
  3. 007c

    007c Peon

    Messages:
    611
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Can you explain a lil further do you need mod rewrite or integrate some html into php? If you want the extension of html to be recognized as php it's not a good idea...
     
    007c, Jul 31, 2008 IP
  4. Plazey

    Plazey Member

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    This kind of thing shouldn't go in the business section.

    Anyways, put this in your .htaccess file.

    AddHandler x-mapp-php4 .html .htm
    AddHandler x-mapp-php5 .html .htm
     
    Plazey, Jul 31, 2008 IP
  5. botcare

    botcare Peon

    Messages:
    154
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Thanks .i will try to put that code.
     
    botcare, Jul 31, 2008 IP
  6. serialCoder

    serialCoder Guest

    Best Answers:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    hmm, i guess there's no use telling, but that will put extra stress on your webserver, but i guess it wont matter if you only have a few files
     
    serialCoder, Jul 31, 2008 IP
  7. botcare

    botcare Peon

    Messages:
    154
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    It is not work.
     
    botcare, Jul 31, 2008 IP