is it possible to include php in html on IIS7?

前端 未结 1 1187
太阳男子
太阳男子 2021-01-19 01:18

It seems to be possible to do so in Apache,

include php script inside HTML

But can I make my IIS 7 parse html files for php? Currently my html files allow as

1条回答
  •  生来不讨喜
    2021-01-19 01:46

    I had to get this working for a site migrated from apache to IIS that used a mixture of .php and .html for it's scripts. I have this (cropped useless stuff) in my web.config:

    
    
        
            
                
            
        
    
    

    Have you got it in the right section? I hate that most web.config examples I see don't actually tell you want section they should be in

    0 讨论(0)
提交回复
热议问题