I get the url of the page on which I am using the following function:
function getUrl() { $url = @( $_SERVER["HTTPS"] != 'on' ) ? 'http://'.$_SERVER["SERVER_NAME"] : 'https://'.$_SERVER["SERVER_NAME"]; $url .= ( $_SERVER["SERVER_PORT"] != 80 ) ? ":".$_SERVER["SERVER_PORT"] : ""; $url .= $_SERVER["REQUEST_URI"]; return $url; } In the browser row, the link is CNC, below without a cnc, which the above function returns to me
But it defines the url without a cnc, how to get the url of the page on which I am already with CNC?
