Top

Wget FTP CSV Datafeed Import Script

Please Register to submit score.
Average Score  7.3
Scores Submitted  3
Date Added  Mar 10, 2005
Last Updated  Apr 18, 2008
Tags  csv  datafeed  ftp  import  mysql  wget 

Introduction

This will download a datafeed to your server from the given FTP account. This only supports CSV datafeeds and requires a minor tweak to accomodate any other type of datafeed. It also requires that you have wget installed on your server. The user executing this script needs to have write access to the "datafeeds" folder.

This can be used in conjunction with my PHP gunzip, unzip File Extractor

Note: "wget -P db" means to put the file in the /db directory. You'll need to create it or change that parameter to match your system.

Grab the Code

Comments

  (3)  RSS
log2
Comments: 52
 
PHP Snippet:  Wget FTP CSV Datafeed Import Script
Posted on Mar 11, 2005 10:56 am
sorry Hawkee, I must give you a five :( this is a good script but it requires you to have other things like wget installed on your server... that's just not what people are looking for, but instead of 0 i gave you a five because it's a very useful code if you have wget :D
tye
Comments: 67
 
PHP Snippet:  Wget FTP CSV Datafeed Import Script
Posted on Mar 11, 2005 5:39 pm
wget is almost universally installed on Linux and BSD servers. It won't work on Windows, however.
Hawkee
Comments: 403
 
PHP Snippet:  Wget FTP CSV Datafeed Import Script
Posted on Mar 12, 2005 3:34 am
I've never needed to install wget, it's always installed. This is acting as an example for using wget.

Please Register or Login to start posting comments.
Bottom