|
Friday 30 January 2004 7:21:16 am
Comment37476
Hi, I have a legacy system based on a Third party product called ArticleManager (some reference has been made to this in the forums before, I know), from which I need to output all the data for my new Exponential based website. At the moment I've been staring at code and reading various documentation and forum posts for a few hours. I've also been toying with a bash script that basically extracts all the data to a text file and then to a csv (I have a number of these, one for each object class, each containing upto about 100 records). Since I'm a bit new to php and I'm still not sure what I'm doing, I was wondering if someone could explain a few parts of the Claus's script to me - so that I know what I have to change for my needs. Looking at sections of Claus's code I think these are the bits I have to customise:
$contentClassId = 28;
$userID = 15;
$handle = fopen ('importdata/WMO-Europe-stations_opencsv.xls', 'r'); $columns = explode("\\t",preg_replace("/\t/","\\t",$line)); I just wanted to know: a) am I right - is there anything else I need to change? b) How do I define the delimiter for my csv file (which is like so "text","more text","....)? c) How do I run the script (I assume it's just something like "php script.php" from the Exponential root directory)? d) I've looked in the suggested places and I can't find the createMetaObj function, could anyone point me in the right direction? Thanks in advance! James
|