[CSV] Redirection ne fonctionne pas
Salut à tous,
voici le problème, je sauve un fichier en local (comme indiqué dans les FAQ -PHP) , le sauvetage se passe bien mais la redirection qui suit ne fonctionne pas
Code:
1 2 3 4 5 6 7 8 9 10
|
$GoTo = "FiltreVehicules.php" ;
$tailleFichier = filesize($file);
header('Content-Type: application/octet-stream');
header("Content-Length: $tailleFichier");
header("Content-Disposition: attachment; filename=\"$nomFichier\"");
readfile($file);
header('Content-Type: text/html; charset=ISO-8859-1');
header("Location: ".$GoTo);
exit(); |
Quelqu'un peut-il m'aider à résoudre cela et m'expliquer en quoi je me fourvoie :wink: