Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. protected function getServerProtocol() {
  2.         $result = 'http';
  3.        
  4.         if(isset($_SERVER['HTTPS'])) {
  5.             $result = 'https';
  6.         }
  7.        
  8.         return $result;
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement