PHP Vérifiez si l'URL est HTTP ou HTTPS

if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')
    $link = "https";
else
    $link = "http";
Wicked Weevil