I am facing a problem that is to get the domain name from my site. I tried the code:
define('PROTOCOL', 'http://');
define('DOMAIN', (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : ''));
define('SUB_FOLDER', str_replace('public', '',...
asked by
05.05.2018 / 00:06