phpinfo();
function site() { $host = 'http://'.$_SERVER['HTTP_HOST']; $directory = dirname($_SERVER['SCRIPT_NAME']); $website = $directory == '/' ? $host.'/' : $host.$directory.'/'; return $website; }