a function to Export CSV a data, gz zip it and copy to a FTP location.
$30-250 USD
Cancelled
Posted almost 9 years ago
$30-250 USD
Paid on delivery
I am reading data from a query, i need a function which will
1. export this data as a .csv file, using "|" as delimeter,
2. zip this file as .gz (im not sure but i think its rar compression?)
3. copy these 2 files to a FTP location.
The function will be;
function dump_data($rs,$csvfilename,$gzfilename);
$rs is a mysql_query result, so you can fetch data with;
while ($rec = mysql_fetch_array($rs))...
for the first line i want to put the fieldnames, then the data for the other lines, inside of the csv excel file.
You can do it with any test database you want.
I will give you the FTP address, username password too.
I need the function in 24 hrs max.
txs!