PHP determine if using SSL HTTPS or HTTP

Reply to comment

wtf it should be if ( $_SERVER['HTTPS'] = '1' etc..

var you are checking = the value you want to check it against