LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 921|回复: 6

在php页面中加广告代码??

[复制链接]
发表于 2005-5-18 11:17:17 | 显示全部楼层 |阅读模式
如<script>.....</script>的弹出广告代码怎么写啊??
发表于 2005-5-18 13:07:13 | 显示全部楼层
<html>
<body>
<script>.....</script>
<?php
.....
?>
<?php
//或
echo "<script>.....</script>";
?>
</body>
</html>
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-18 13:45:27 | 显示全部楼层
我 用了pmwiki,下面是index.php文件!@@

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-18 23:06:49 | 显示全部楼层
上帝呀救救我吧!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-18 23:06:24 | 显示全部楼层
帮忙看看呢我在index.php中加了
echo"<script src=http://www.jsphome.com/ad/showad.php?uid=14791&aid=110></script>";
结果页面出现了错误:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /www/user/li/nu/linux/index.php:3) in /www/user/li/nu/linux/scripts/sessionauth.php on line 9

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /www/user/li/nu/linux/index.php:3) in /www/user/li/nu/linux/scripts/sessionauth.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at /www/user/li/nu/linux/index.php:3) in /www/user/li/nu/linux/index.php on line 459

点下看看呢! http://linux.jsphome.com
回复 支持 反对

使用道具 举报

发表于 2005-5-20 14:49:53 | 显示全部楼层
不要放在文件最开头的地方.......
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-20 23:37:35 | 显示全部楼层
index.php 下

[php]
104 $HTMLBodyFmt = "</head><script src=http://www.jsphome.com/ad/showad.php?        uid=14791&aid=110></script>
    105 \n<body>";
[/php]


还有scripts/sessionauth.php 下加了
[php]
     19   echo"<script src=http://www.jsphome.com/ad/showad.php?uid=14791&aid=11        0></script>";
[/php]

现在好像解决了!哈哈
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表