<?php
/**
* 取得当前页面完整url
*/
function geturl() {
$url = '';
if (isset ( $_SERVER ['REQUEST_URI'] )) {
$url = $_SERVER ['REQUEST_URI'];
} else {
$url = $_SERVER ['Php_SELF'];
$url .= empty ( $_SERVER ['QUERY_STRING'] ) ? '' : '?' . $_SERVER ['QUERY_STRING'];
}
return $url;
}
echo geturl();
?>
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
txttool.com 说一段 esp56物联 查询128 IP查询