Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
phph get server protocol
Sophie Matthews
Programming language:
PHP
2021-04-30 15:47:57
0
Q:
phph get server protocol
mohamedmansurs
Code:
PHP
2021-09-07 14:58:47
$protocol = stripos($_SERVER['SERVER_PROTOCOL'],'https') === 0 ? 'https://' : 'http://';
0
Tags
server
get
Related
php server
php server function
php get client ip
connect to ftp server php
get http method php
php get request header
php get file from another server
php make server
laravel get host with http
php get ip address
Web servers supported by php
php serverpath
php get domain name with https
php get client ip address
check website ssl certificate using php
php curl get
php server name
how to get ip address of client using php
php sql server connect
New to Communities?
Join the community