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 :: laravel cors enable 
Php :: json stringify to php array 
Php :: laravel migrations rename table 
Php :: login selected user laravel 
Php :: using php to add numbers in html form 
Php :: trait php 
Php :: composer create project 
Php :: Genrate Random Integer 10 digits in php 
Php :: german locale php 
Php :: laravel file store 
Php :: multi theme laravel 
Php :: run codeigniter 4 with spark 
Php :: php clear post data 
Php :: php require 
Php :: how to make core controller codeigniter 3 more than 1 
Php :: add top menu bar in wordpress 
Php :: laravel number input positive only 
Php :: php all date arguments 
Php :: php undefined index meaNING 
Php :: laravel faker select between options 
Php :: Show all laravel valet folders 
Php :: how to add column to database in laravel 
Php :: laravel store file 
Php :: php socket connect 
Php :: isset laravel 
Php :: php find multiple value in array 
Php :: move img to public folder in laravel 
Php :: strrev php 
Php :: How do I get a YouTube video thumbnail from the YouTube API? 
Php :: insert into laravel 8 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =