loading...

Discussion

markdown guide
 

Here is a better one with dynamic protocol for site name
<?php

$requestUrl = $_SERVER['REQUEST_URI'];

$siteName = $_SERVER['SERVER_NAME'];
$siteAddr = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https://" : "http://") . $siteName;

?>