My code is below
$base = if((!empty(($_SERVER['HTTPS'] ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . '/'));
I'm checking whether $_SERVER['HTTPS']
is not empty but I get this notice:
Notice: Undefined index: HTTPS in D:\xampp\htdocs\flower-shop\flowers.php on line 24