全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 451|回复: 5

[Windows VPS] 求个php简单代码

[复制链接]
发表于 2019-1-3 20:22:13 | 显示全部楼层 |阅读模式
怎么根据php后面的自定义参数
比如 运行  xxx.php?url=aaa

输出


<html>
<head>
<meta http-equiv="Content-Language" content="zh-CN">
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<meta http-equiv="refresh" content="0.1;url=https://1111.com/aaa">
</head>
</html>

实现通过不同url参数跳转到不同网址啊

T T不会php代码
发表于 2019-1-3 20:23:32 | 显示全部楼层
<?php
header('Location: https://1111.com/'.$_GET['url']);

点评

感谢大佬  发表于 2019-1-4 01:59
发表于 2019-1-3 20:34:43 | 显示全部楼层
哈哈 一看就是准备做淘点金的大佬  
发表于 2019-1-3 20:57:09 | 显示全部楼层
mark

学习了,收藏
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-4-10 13:58 , Processed in 0.062919 second(s), 15 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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