How To Determine HTTP Protocol Using PHP

Published Date Author: , Posted May 11th, 2012 at 11:46:53am

$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? "https:" : "http:";

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.