Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to set base url in codeigniter

$base_url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http");
$base_url .= "://". @$_SERVER['HTTP_HOST'];
$base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
$config['base_url'] = $base_url;
Comment

dynamic base url codeigniter

defined('BASE_URL') OR define('BASE_URL', (is_https() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']) . '/');
$config['base_url'] = BASE_URL;
Comment

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']);
Comment

codeigniter base_url

$this->load->helper('url');
Comment

codeigniter base url automatic

$base_url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http");
$base_url .= "://". @$_SERVER['HTTP_HOST'];
$base_url .=     str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
$config['base_url'] = $base_url;
Comment

PREVIOUS NEXT
Code Example
Php :: compare php date with mysql date 
Php :: laravel select selected 
Php :: Laravel Retrieve Session Data with default 
Php :: encrypt/decrypt data php 
Php :: laravel validation digits 
Php :: laravel mutators 
Php :: laravel get parent from child 
Php :: regular expression for strong password in php 
Php :: add time to a date php 
Php :: php strtotime plus 1 day 
Php :: how to sent request in php 
Php :: laravel select max value 
Php :: how to change php version in cpanel 
Php :: resource controller artisan command 
Php :: get first word from string php 
Php :: php cookie 
Php :: jwt auth laravel auth without password field 
Php :: laravel return view in web.php 
Php :: create a custom method laravel model 
Php :: laravel json response 
Php :: php get option value 
Php :: php recaptcha 
Php :: php set environment variable 
Php :: php location header 
Php :: get current authenticated user laravel 
Php :: laravel route multiple methods 
Php :: laravel response header 
Php :: json encode 
Php :: notify multiple users laravel 
Php :: pretty json php 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =