nurimaso
-
Total Posts
:
1
- Scores: 0
-
Reward points
:
0
- Joined: 7/22/2010
-
Status: offline
|
Download file from remote internet server
Thursday, July 22, 2010 9:50 PM
( permalink)
I'm creating a site to resell several products from a distributor. I have an URL where every day there's an update of products information (properties, prices, stock,...) in a CSV file. I want to download this file to my local PC to transfer it into a database. I found a code to download the file using MSXML2.ServerXMLHTTP but the result doesn't identify special characters (ñ,ç,é,í,...), that can be solved with "chrw(ascw(chr(ascb(midb(body8209,i+1,1)))))" The script works, but it is not good for me because I'm talking of a file with 4000 or 5000 products and I calculated that it takes more or less 6/8 hours to convert special characters. Could someone help me with a script that I could execute every day and download the file from the remote internet server to mine or perhaps include to a database directly?
|
|
|
|