How i can check in php, in what format displayed url xn--d1acufc5f.xn--p1ai or домены.рф
I try use $_SERVER['HTTP_HOST']
but browsers where supporting punycode, http_host return no encoding version
How i can check in php, in what format displayed url xn--d1acufc5f.xn--p1ai or домены.рф
I try use $_SERVER['HTTP_HOST']
but browsers where supporting punycode, http_host return no encoding version
You simply won't have any idea how the browser displays a punycoded URL. It is entirely up to the browser, there is no information communicated between the browser and your server that would enable PHP to know this.