mercredi 9 mai 2018

$_SERVER['REQUEST_URI'] didn't work inside the if condition [on hold]

The following code works, when i just echo the $_SERVER['REQUEST_URI'], but shows nothing when i call it in an if statement ....

$get_params = $_SERVER['REQUEST_URI'];

if ($get_params == "projects/ecom/public/admin/"  || $get_params == "projects/ecom/public/admin/index.php" ) {
    print_r($get_params);
    include(TEMPLATE_BACK ."/admin_content.php");
}

Aucun commentaire:

Enregistrer un commentaire