---
title: "PHP 获取当前页面地址"
author: "peter2009"
date: "2016-07-07T22:27:50Z"
tags: []
categories: ["编程语言"]
slug: "php"
draft: false
lastmod: "2016-07-07T22:27:50Z"
id: 2309941
url: "https://peter2009.iteye.com/blog/2309941"
---

```java

 $REDIRECT_URI =  'http://'.$_SERVER['http_host'].$_SERVER['php_self'].'?time=123456&'.$_SERVER['query_string'];

```