php include to external url

后端 未结 5 1379
迷失自我
迷失自我 2020-12-19 15:29

I am currently trying to use the php function \'include\' to include an external url. This is so that whenever the webpage is updated it will automatically update mine. The

5条回答
  •  伪装坚强ぢ
    2020-12-19 15:41

    You would be better using echo file_get_contents($url) as the include statement could execute any PHP code returned by the other site.

提交回复
热议问题