Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

public $baseURL codeigniter 4

$base = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']) : 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']);

defined('BASE') || define('BASE', $base);
Source by www.mahadisuta.com #
 
PREVIOUS NEXT
Tagged: #public #codeigniter
ADD COMMENT
Topic
Name
6+1 =