从一个网站到另一个网站调用html页面中的一个php页面


Calling one php page in html page from one website to another

我有一个包含footer-new.php的索引页。我在其他网站上也有一个名为offers.php的页面。我只需要在footer-new.php中调用offers.php文件。offers.php文件只包含一条.gif横幅,没有其他内容。我想把横幅放在我的页脚.hp.中

请帮我查一下密码。我试过,fopen()header(Location:),我也试过include""require""

我无法加载offers.php文件。

您可以简单地执行

echo file_get_contents("offers.php");

在您的页脚-新.php 中

这将在footer-new.php 中显示完整页面