📜  如何在php代码示例中获取当前页面的链接

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

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