Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
phph get server protocol
shanish
Programming language:
Whatever
2021-08-04 00:58:28
0
Q:
phph get server protocol
mohamedmansurs
Code:
Whatever
2021-09-07 14:58:47
$protocol = stripos($_SERVER['SERVER_PROTOCOL'],'https') === 0 ? 'https://' : 'http://';
0
Tags
server
get
New to Communities?
Join the community