$protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http'); $host = $_SERVER['HTTP_HOST']; $uri = $_SERVER['REQUEST_URI']; $full_url = $protocol . '://' . $host . $uri; $service = basename($full_url); $service = str_replace("-", " ", $service); $globalservice = ucfirst(str_replace("?", "", $service)); $GLOBALS['link'] = $full_url; $GLOBALS['serv'] = $globalservice; $GLOBALS['sv'] = $service; $sentence = $GLOBALS['serv']; $words = explode(' ', trim($sentence)); $GLOBALS['place'] = $words[0]; $desc = $GLOBALS['serv'] . ': Nairobi Online Digital is a trusted service provider. For the best ' . $GLOBALS['serv'] . ', get in touch with Nairobi Online Digital where we will deploy an experienced technician, fully equipped and ready to deliver same-day ' . $GLOBALS['serv'] . '.'; $GLOBALS['meta_desc'] = htmlspecialchars($desc, ENT_QUOTES, 'UTF-8'); $GLOBALS['serv_safe'] = htmlspecialchars($GLOBALS['serv'], ENT_QUOTES, 'UTF-8'); $GLOBALS['link_safe'] = htmlspecialchars($GLOBALS['link'], ENT_QUOTES, 'UTF-8'); <cms:php>echo $GLOBALS['serv_safe'];</cms:php> › 0722566999 : By Nairobi Online Digital