Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

base url dinamis codeigniter

$config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http");
$config['base_url'] .= "://" . $_SERVER['HTTP_HOST'];
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']), "", $_SERVER['SCRIPT_NAME']);
Source by masrud.com #
 
PREVIOUS NEXT
Tagged: #base #url #dinamis #codeigniter
ADD COMMENT
Topic
Name
4+1 =