Re: [PHP] manipulating CSV files

2007-10-03 Thread Wolf
Sure, just use the code I/we provided as the basis for what you need. When you get stuck, post your code and we'll be happy to look at it for you. Wolf pere roca <[EMAIL PROTECTED]> wrote: > > hi Wolf and Jim, thanks for the answer! Very useful. > Now It would be wondeful if I can p

Re: [PHP] manipulating CSV files

2007-10-03 Thread pere roca
hi Wolf and Jim, thanks for the answer! Very useful. Now It would be wondeful if I can pick up the values from a CSV file (coordinates) and apply a postGIS/postgreSQL function (Select ...) to this data and add the resulting values as a new filed in the CSV ! Is that possible? Thanks,

Re: [PHP] manipulating CSV files

2007-10-01 Thread Jim Lucas
Wolf wrote: / $filename=""; // Name of your CSV file $file_path = ""; // whatever your files are pathed $filename = $file_path.$filename; $handle = @fopen($filename, "r"); $k=0; $entry = $file_path . "entry_file.txt"; // I use this to make a new entry file $entry_fi

Re: [PHP] manipulating CSV files

2007-10-01 Thread Wolf
/ $filename=""; // Name of your CSV file $file_path = ""; // whatever your files are pathed $filename = $file_path.$filename; $handle = @fopen($filename, "r"); $k=0; $entry = $file_path . "entry_file.txt"; // I use this to make a new entry file $entry_file = fopen($en

[PHP] manipulating CSV files

2007-10-01 Thread pere roca
hi folks, I have a CSV file. Data is separated by ','. For example: -94.86524,42.059444,A,B,X -96.86524,42.059444,A,B,Y1 -99.86524,42.059444,A,B,C1 I want to interactively insert the user_name (passed by a php variable) into the first "field" to insert then on my DataBase. Pet