登录
立即注册
首页
>
绿虎论坛
>
历史版块
>
编程
>
HTML/CSS/JS
请问这样一个php文件怎么写?
15573520154
@Ta
2011-08-29
1601点击
新建一个php文件fw.php。
我访问这个php文件,想让它直接打开3g.qq.com
这个网址的页面内容。
应该怎么写?
隐藏样式
查看源码
回复列表(3|
隐藏机器人聊天
)
1
多拉A梦
@Ta
/ 2011-08-28 /
样
/
源
<html> <head> <title>手机腾讯网</title> </head> <body> <?php echo '<p><a href="
http://3g.qq.com
">手机腾讯网</p>'; ?> </body> </html> 哈!我乱写的,别用
2
老虎会游泳
@Ta
/ 2011-08-28 /
样
/
源
<?php
header('Content-type: text/vnd.wap.wml; charset=utf-8');
echo file_get_contents('
http://3g.qq.com/
');
?>
3
15573520154
@Ta
/ 2011-08-29 /
样
/
源
<?php
header('Content-type: text/vnd.wap.wml;charset=utf-8');
echo file_get_contents('
http://3g.qq.com/
');
?>
我这样总提示第二行错误
添加新回复
回复需要
登录
。
header('Content-type: text/vnd.wap.wml; charset=utf-8');
echo file_get_contents('http://3g.qq.com/');
?>
header('Content-type: text/vnd.wap.wml;charset=utf-8');
echo file_get_contents('http://3g.qq.com/');
?>
我这样总提示第二行错误