标签: PHP获取当前页面URL

PHP获取当前页面URL

直接上代码: function getUrl() { $url = @( $_SERVER[“HTTPS”] != ‘on’ ) ? ‘http://’.$_SERVER[“SERVER_NAME”] : ‘https://’.$_SERVER[“SERVER_NAME”]; $url .= ( $_SERVER[“SERVER_PORT”] !== 80 ) ? “:”.$_SERVER[“SE
阅读更多 »