Jump to content

Module d'export avec probleme d'accents


Recommended Posts

<?php

$file=$_GET['file'];	
    
//telechargement
if (file_exists($file)) {
	
	header('Content-Description: File Transfer');
	header('Content-Type: application/octet-stream');
	header('Content-Disposition: attachment; filename=export.csv');
	header('Content-Transfer-Encoding: binary');
	header('Expires: 0');
	header('Content-Length: ' . filesize($file));
	header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
	header('Pragma: public');
	echo "\xEF\xBB\xBF";
	readfile($file);
	exit();
}
else 
	print "Can't find file";

Cadeau^^

Link to comment
Share on other sites

Merci bcp EOLIA ,

j ai fait les changements et la j ai ca qui s affiche :

ZoUmRvHQ.csv.part ne pourra être enregistré car le fichier source ne peut être lu.

Réessayez plus tard ou contactez l’administrateur du serveur.

merci encor de votre aide

 

 

Edited by Smatesphonepascher (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...