DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   Save a text file in an csv.file with ascii? (http://www.daniweb.com/forums/thread9821.html)

nyqvist Aug 24th, 2004 6:06 pm
Save a text file in an csv.file with ascii?
 
Thank You for taking your time to read this.

Well, the subject kind of tells it all. I have built an webshop, but would like the order to be place in an text file insted of mysql. This text file has to be in an csv format in order to get parsed by an onther application, and it also has to be in ASCII format.

So is't anyone how has any code ex fot his?

Br
Mattias from Sweden

Gary King Aug 24th, 2004 6:18 pm
Re: Save a text file in an csv.file with ascii?
 
Well CSV just means that you separate things using commas; but it'll be real hard to be able to read off data from certain rows and manipulate the data in the CSV.

Adding data is not a problem, but reading data from the CSV will be much harder I believe.

What I would suggest is to use MySQL, then use phpMyAdmin to output the table(s) in CSV format ;)

samaru Aug 28th, 2004 1:42 pm
Re: Save a text file in an csv.file with ascii?
 
I agree with Gary. In all honesty, any time you're dealing with money, you want something secure. A text file is not secure. It's not fast. It's not cached. Can be corrupted easily. Has no relational support. May I ask why you're not going with a database server?


All times are GMT -4. The time now is 6:30 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC