Lecture de fichier xls
Posté : 31 mai 2007, 17:28
Bonjour,
J'ai un problème pour lire un fichier excel.
J'utilise ce code :
J'ai un problème pour lire un fichier excel.
J'utilise ce code :
header("Content-Type: application/x-msexcel; name=\"".$_POST['ville'].".xls\"");
header("Content-Disposition: inline; filename=\"".$_POST['ville'].".xls\"");
readfile('archives/'.$_POST['annee'].'/'.$_POST['moi'].'/'.$_POST['ville'].'/liste.xls');
Mais il semble que le navigateur ne prenne pas en compte le header, j'ai une page HTML tout simplement incompréhensible...