Answers for "php check whether the url is http or https"

PHP
0

php check whether the url is http or https

if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')
    $link = "https";
else
    $link = "http";
Posted by: Guest on September-21-2021

Code answers related to "php check whether the url is http or https"

Browse Popular Code Answers by Language