Welcome Guest, Not a member yet? Register   Sign In
PHP Notice: Undefined variable: _SERVER
#1

(This post was last modified: 03-04-2019, 06:31 AM by makif.)

i was using nginx server and i  changed to apache 2.4. 
iam using ci 3.1.8 version
php version is 7.1.18
i guess server connection lost but why i have no idea why 

[Mon Mar 04 13:13:04.598041 2019] [php7:notice] [pid 4992:tid 1108] [client 51.11.0.4:56252] PHP Notice:  Undefined variable: _SERVER in C:\\Interface\\html\\application\\config\\config.php on line 28, referer: http://51.11.0.21/

PHP Code:
Line 27$root=(isset($_SERVER['HTTPS']) ? "https://" "http://").$_SERVER['HTTP_HOST'];
Line 28$root.= str_replace(basename($_SERVER['SCRIPT_NAME']), ''$_SERVER['SCRIPT_NAME']);

Line 30$config['base_url'] = $root
Reply


Messages In This Thread
PHP Notice: Undefined variable: _SERVER - by makif - 03-04-2019, 06:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB