
bonjour,
je veux utiliser header avec une fonction..
je fais ainsi :
header ("Location: ".detect_language("index.php")."");
detect_language est une fonction;
dans ma fonction je retourne ceci :
return "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].$page."?lang=fr";
normalement il doit me retourner apr exemple http://www.free.fr/index.php?lang=fr
mais ca ne amrche pas qaund je combine header avec une fonction... Comment je dois faire ?
pourtant j'ai verifier s'il retournait bien al bonne adresse et tout à l'air de fonctionner sauf le header avec la fonction...
merci