Re: Handling File Uploads : ASCII/Binary transfers
| From: | Christian Reiniger | Date: | Thu, 22 Feb 2001 10:23:17 +0000 |
| Subject: | Re: Handling File Uploads : ASCII/Binary transfers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41118@lists.php.net to get a copy of this message | ||
On Wednesday 21 February 2001 12:49, Jeff Gannaway wrote:
> Here's the deal. My customer needs to upload an ASCII export file of
> database info generated by MS Access on their PC. I've written a
> script that allows them to upload their Access files then does a LOAD
> DATA INFILE command to integrate it into the MySQL database on the web
> server.
HTTP uploads shouldn't mangle *anything*...
> I ran into this problem before when I was manually FTPing export files
> then using LOAD DATA INFILE. I fixed it by switcheing from Binary FTP
> to ASCII FTP. How can this be done with a PHP script???
.. but apparently you *want* it to mangle the data (convert line ends).
You server is a Unix machine? What error does Mysql give you on the
"broken" files?
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
I saw God --------- and she was black.