Return to Snippet

Revision: 54683
at January 7, 2012 01:54 by the_construct


Initial Code
<?php

if ($_SERVER['HTTPS'] != "on") { 
	echo "This is not HTTPS";
}else{
	echo "This is HTTPS";
}

<?

Initial URL

                                

Initial Description
Check if URL is HTTPS

Initial Title
Check if URL is HTTPS in PHP

Initial Tags
url, php

Initial Language
PHP