include php script inside HTML

后端 未结 5 1687
闹比i
闹比i 2020-12-09 14:19

I am a newbie and have never used PHP before. I want to execute PHP script from an HTML file on Linux. What do I need to do?

This is the content of my HTML file:

5条回答
  •  自闭症患者
    2020-12-09 14:45

    I am surprised no-one has mentioned a way to hack it - if you don't want to hassle of changing the Apache config here is how you do it:

    In your .html file you simply make use out of iframes

    
    

    This will simply just display what ever is displayed as if you went directly to www.mysite.com/myScript.php

    So for example we could have

    
    

提交回复
热议问题