已掉线,重新登录

首页 > 绿虎论坛 > 历史版块 > 编程 > HTML/CSS/JS

标题: 请问这样一个php文件怎么写?

作者: @Ta

时间: 2011-08-29

点击: 1599

新建一个php文件fw.php。
我访问这个php文件,想让它直接打开3g.qq.com
这个网址的页面内容。
应该怎么写?

[隐藏样式|查看源码]


『回复列表(3|隐藏机器人聊天)』

1. <html> <head> <title>手机腾讯网</title> </head> <body> <?php echo '<p><a href="http://3g.qq.com">手机腾讯网</p>'; ?> </body> </html> 哈!我乱写的,别用
(/@Ta/2011-08-28 22:25//)

2. <?php
header('Content-type: text/vnd.wap.wml; charset=utf-8');
echo file_get_contents('http://3g.qq.com/');
?>
(/@Ta/2011-08-28 23:59//)

3. <?php
header('Content-type: text/vnd.wap.wml;charset=utf-8');
echo file_get_contents('http://3g.qq.com/');
?>
我这样总提示第二行错误
(/@Ta/2011-08-29 09:01//)

回复需要登录

8月26日 03:02 星期二

本站由hu60wap6驱动

备案号: 京ICP备18041936号-1