csv files generated by php breaked by browser

From: Date: Thu, 14 Dec 2000 14:58:36 +0000
Subject: csv files generated by php breaked by browser
Groups: php.general 
Request: Send a blank email to php-general+get-30292@lists.php.net to get a copy of this message
Hello, I have this weird problem: I have an export script that takes some records from some tables and builds with them csv files, named something like: FInteractExport_le_13_f_00_a_03_42_13.csv The file generation is ok, the file exists on disk and can be read, write, etc. This both on Linux, Windows Apache Webserver. Now, after I write this file down, I make a link to the file in the page. The link is something like: <a href=./temp/FInteractExport_le_13_f_00_a_03_42_13.csv target="newwin">Récupérez votre fichier :</a> Now the problem is with this link. I use IE, so If i press it, the system asks me if I want to save it or open it. If I open it, the system starts excel immediatelly and opens the file. If I choose to save it, it saves the file wherever i want to. I can do this opperation here, at work (Linux Apache&IE, NS) and at at home (Win32 Apache&IE, NS) It's ok until now. The problem is with my client's browser i suppose. When he opens this link, he sees the lines, but sepparated by empty lines. He sent me those files and I look over them. The difference between my files and his are that my end of lines are (hexa) OD OA and his's are OD OD OA. How does this OD appears? Can anyone explain to me? If you need more information ask for it. -- Regards, Uioreanu Calin ------------------------------------- udmsromkt@mail.dntcj.ro uioreanu@hotmail.com Tel: +4094477589 Web: http://www.ecomert.f2s.com DMS Team Cluj-Napoca Romania ------------------------------------------------

« previous php.general (#30292) next »