Page 1 of 1

multiple-part form post

Posted: Fri Dec 17, 2010 5:14 am
by Anant
Hi,

I have to pass the file data(csv format) within a special multiple-part form post.

How can i achieve this ?

My other question would be - how to convert mysql data to csv file data in php ?


Thanks

Re: multiple-part form post

Posted: Fri Dec 17, 2010 5:34 am
by Darhazer
about the first question - best use curl, as it easy to perform post request with it and upload file
for the second one, take a look at fputcvs