已掉线,重新登录

首页 > 绿虎论坛 > 历史版块 > 编程 > PHP > 讨论/求助

标题: 帮忙写段小小的php代码

作者: @Ta

时间: 2013-09-12

点击: 4722

应该很简单,可惜不会写!
    - -!
比如:  我是打开a.php  访问http://hu60.cn/a.php    之后就直接打开a.php中的http://wap.baidu.com
就是这样的!访问php文件,直接打开里面网站!


怎么样,简单吧!帮个忙,三克油!

[隐藏样式|查看源码]


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

1. 说清楚点
不访问怎么打开…
(/@Ta/2013-09-12 17:40//)

2. 你是说打开http://hu60.cn/a.php他打开是http://wap.baidu.com
?这不就是跳转而已么
(/@Ta/2013-09-12 17:44//)

3. <?php

$d = array(

http://wap.baidu.com",

);

shuffle($d);

?><html>

<head>

<meta http-equiv="refresh"content="0; url=<?=$d[0];?>">

</head>

</html>
(/@Ta/2013-09-12 17:46//)

4. @萝莉控De团长
这样说吧,我给你个网址“http://wap.baidu.com”,然后你写个php,然后把它放空间后直接访问这个php,打开这个php也就是打开http://wap.baidu.com

(/@Ta/2013-09-12 17:47//)

5. 是不是和我的网站一样?   http://www.92abw.tk    自动跳转随机一个网站
(/@Ta/2013-09-12 17:47//)

6. 添加多个地址能实现随机
修改下面的时间“0”能实现多少秒后跳转
(/@Ta/2013-09-12 17:48//)

7. @萝莉控De团长
跳转我知道怎么弄,就是不要跳转的!还有,你那代码有错误
(/@Ta/2013-09-12 17:58//)

8. @倚天刀
<?php
$a = file_get_contents("http://wap.baidu.com");
echo $a;
?>
(/@Ta/2013-09-12 18:16//)

9. @倚天刀查看教程密码是1763382811
(/@Ta/2013-09-12 18:27//)

10. <html><head><meta http-equiv="refresh" content="0; url=http://wap.baidu.com"></head></html>
(/@Ta/2013-09-12 19:20//)

11. @runvx,嗯谢了!
可以弄成多个网址随机访问啵?
(/@Ta/2013-09-12 19:50//)

12. @星空HD,跳转的我知道
(/@Ta/2013-09-12 19:51//)

13. @DaMeng,谢了
<?php
header('Location:http://wap.baidu.com');
?>
(/@Ta/2013-09-12 19:56//)

14. <?php
$dz=array("http://wap.baidu.com",
                   "http://www.ekcnw.com",
                   "http://ekftp.ekcnw.com");
$url=rand(0,2);
$a = file_get_contents($dz[$url]);
echo $a;
?>
@倚天刀
(/@Ta/2013-09-12 20:50//)

回复需要登录

7月24日 07:18 星期四

本站由hu60wap6驱动

备案号: 京ICP备18041936号-1