Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php check whether the url is http or https

if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')
    $link = "https";
else
    $link = "http";
Comment

PREVIOUS NEXT
Code Example
Php :: laravel request all except 
Php :: php generate random alphanumeric string 
Php :: debug wordpress errors 
Php :: last insert id model codeigniter 
Php :: download php7.4-mbstring ubuntu 
Php :: how to set no cache header php 
Php :: link acf 
Php :: remove slashes php 
Php :: php connect to postgresql 
Php :: ubuntu update php 7.4 to 8 
Php :: artisan make model with migration 
Php :: php 3 digit decimal 
Php :: how to get previous page name in php 
Php :: laravel hash::check 
Php :: php foreach echo key value 
Php :: check if constant is defined php 
Php :: laravel check if object empty 
Php :: There is no existing directory at "/var/www/storage/logs" and it could not be created: Permission denied 
Php :: year shortcode 
Php :: php loop through array 
Php :: php get current url without filename 
Php :: set charset of response php 
Php :: 19 hours from now php 
Php :: php artisan serve specify ip 
Php :: max execution time exceeded php 
Php :: check if number is float in php 
Php :: define home url wordpress config.php 
Php :: php get user ip address 
Php :: wordpress errors 
Php :: group by laravel 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =