PHP determine if using SSL HTTPS or HTTP

Reply to comment

thanks for posting this, it helped me big time today