Reply to Re: deleting row in csv file

Your name:

Reply:


Posted by JDS on 10/24/05 21:29

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().

--
JDS | jeffrey@example.invalid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация