Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
1
0
 
0
Language: PHP
Posted by: r52snip
Added: Aug 2, 2018 1:06 PM
Modified: Aug 2, 2018 1:07 PM
Views: 12
  1. $protocol = stripos($_SERVER['SERVER_PROTOCOL'],'https') === true ? 'https://' : 'http://';