Answers for "check if site having http or https php"

PHP
1

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

Browse Popular Code Answers by Language