Get the address at the time

xiaoxiao2021-03-06  59

// Get the address function getURL () {$ URL = "http: //". $ _ Server ["http_host"];

IF (isset ($ _ server [")) {$ url. = $ _ server [" request_uri "];} else {$ URL. = $ _ server [" php_self "]; if (! Empty ($ _ server [" Query_string "])) {$ URL. ="? "$ _ Server [" query_string "];}}

Return $ URL;} //print geturl ();

转载请注明原文地址:https://www.9cbs.com/read-72080.html

New Post(0)