📜  完整的url php代码示例

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

代码示例1
//Get complete URL with http/https and GET parameters
$complete_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";