PHP retrieves the URL of the current page, and php retrieves the current page. PHP obtains the url of the current page. php obtains the url functionGetCurUrl () {$ url; if (isset ($ _ SERVER [HTTPS]) of the current page. AND $ _ SERVER [HTTPS] PHP gets the URL of the current page, AND php gets the current page
PHP retrieves the URL of the current page
Function GetCurUrl () {$ url = 'http: // '; if (isset ($ _ SERVER ['https']) AND $ _ SERVER ['https'] = 'on') {$ url = 'https: // ';} if ($ _ SERVER ['server _ port']! = '80') {$ url. = $ _ SERVER ['http _ host']. ':'. $ _ SERVER ['server _ port']. $ _ SERVER ['request _ URI '];} else {$ url. = $ _ SERVER ['http _ host']. $ _ SERVER ['request _ URI '];} return $ url ;}
Using PHP to obtain the current page url function GetCurUrl () {$ url = 'http: // '; if (isset ($ _ SERVER ['https']) AND $ _ SERVER ['https']...