security - Retrieve Website Fully Qualified URL Securely in PHP? -


have seen lots of individual threads on how generate qualified website url, e.g.

https://www.example.com/ 

the majority of threads few years old , have mentions of security risks using code.

is there more date , secure way of retrieving qualified url in php?

update:

i wish keep global string, auto-generated, of top level website address use in pages on website.

$actual_link = (isset($_server['https']) ? "https" : "http") . "://$_server[http_host]$_server[request_uri]"; 

refer : get full url in php


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -