|  | Posted by Stefan Rybacki on 10/24/05 21:35 
JDS wrote:> On Mon, 24 Oct 2005 16:06:48 +0200, nescio wrote:
 >
 >
 >>so my question is: how can i delete a row in a csv file?
 >
 >
 > The question is, how are you reading, updating, and rewriting to the file?
 >
 > I recommend using file() to read the file into an array.
 >
 > Then update the value of the array
 >
 > Then write the value of the array back out to the file, overwriting the
 > old file in the process.  Use fopen() and fwrite().
 >
 
 Well this is what I would do in any other programming language (except java). But since
 php has memory restrictions (mostly 8MB) I wouldn't recommend such a way, without knowing
 the worst case (max size of the file). Just to mention. ;)
 
 Regards
 Stefan
  Navigation: [Reply to this message] |