Bonjour,
je voudrais recuperer l'url actuelle complete
j'ai fait ceci :
<?
if (!empty($_SERVER['QUERY_STRING'])) { $page_actuelle = $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']; }
else { $page_actuelle = $_SERVER['PHP_SELF']; }
print_r('<font color="red">'. $page_actuelle.'</font>');
?>
mais il m'affiche monsite/version2/index.php?id=36
et je voudrais qu'il affiche seulement index.php?id=36
comment faire ?
merci de votre aide