Home > Backend Development > PHP Tutorial > php输出html有关问题,

php输出html有关问题,

WBOY
Release: 2016-06-13 10:18:02
Original
836 people have browsed it

php输出html问题,!急
如何把php输出的html代码加入到网页中并显示,php输出的代码是一个广告页面!

这个是showads.php

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?phpecho <<<eof<p>    <script type="text/javascript">    google_ad_client = "pub-3381531532877742";    google_ad_slot = "7423315034";    google_ad_width = 728;    google_ad_height = 90;    </script>    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">    </script>            <p>        <script type="text/javascript">    google_ad_client = "pub-3381531532877742";    google_ad_slot = "7423315034";    google_ad_width = 728;    google_ad_height = 90;        </script>    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">    </script>    </p>eof;?>
Copy after login



如何把这个加到index.html里显示,不能用iframe

谢谢!

------解决方案--------------------
把3楼的代码存为一个文本文件,例如文件名ggads
然后在需要用到的地方
当然还要保证文件名前路径正确
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template