📜  获取当前页面地址 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:01.990000             🧑  作者: Mango

代码示例1
$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";