Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check whether the url is http or https

if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')
    $link = "https";
else
    $link = "http";
 
PREVIOUS NEXT
Tagged: #php #check #url #http #https
ADD COMMENT
Topic
Name
1+1 =