<?php if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
$protocol= "https://";
} else {
$protocol= "http://";
} echo $protocol.$_SERVER['SERVER_NAME']; ?>
$protocol= "https://";
} else {
$protocol= "http://";
} echo $protocol.$_SERVER['SERVER_NAME']; ?>
No comments:
Post a Comment