how to get html parsed by php parser

Discussion in 'PHP' started by sam1, Jan 5, 2007.

  1. #1
    I have added this line in my .httaccess

    AddType application/x-httpd-php .html

    Is there something that i have to do? As this in not working for me.

    one more thing, one host provide me an option of multiple site hosting on one account. I have already one site there which is purely html
    but when i add the above line in .httaccess file, even this html site also stops working.. any reason why?

    And there is only one .httaccess for the whole account,not one .httaccess per website( folder)
     
    sam1, Jan 5, 2007 IP
  2. aditya_sfs

    aditya_sfs Peon

    Messages:
    2,271
    Likes Received:
    389
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well for multiple sites in one account as addon domains i think they will be in sub folders and the main site in the root folder. Do you want to apply this to the main site in the root folder or any other addon domain in the same account ?
     
    aditya_sfs, Jan 5, 2007 IP
  3. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #3
    Hi sam1,
    What is the error shown? Does it give a 500 internal server error, or does it give a page not found message?
    Thanks :)
     
    JEET, Jan 6, 2007 IP
  4. sam1

    sam1 Active Member

    Messages:
    679
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Hi JEET,
    Now that problem is fixed. but now my php files are not picking up my .css file ( the whole layout is defined inside that only) any help??
     
    sam1, Jan 6, 2007 IP
  5. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #5
    Try pasting the css code in the php/html page itself, instead of getting it from an external file.
    <style type="text/css">
    css code here
    </style>

    I think that should solve this...
    Bye :)
     
    JEET, Jan 6, 2007 IP