note 90455 rejected from function.fopen by danbrown

From: Date: Thu, 23 Apr 2009 13:12:59 +0000
Subject: note 90455 rejected from function.fopen by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153621@lists.php.net to get a copy of this message
Note Submitter: gregory dot coustou at devoteam dot com ---- Hello, I read file (listePilote/pilotage.csv) and for only one line ($modif_ligne), i would like to erase all informations and write my new line ($i=$modif_ligne;$i<$modif_ligne).. My problem is for ERASE THIS LINE :( ... For example : if ($f = fopen("listePilote/pilotage.csv", "w+")) { for($i=$modif_ligne;$i<$modif_ligne;$i++) { foreach ($tab as $line) { //fputcsv($f, split(';', $line)); fwrite($f, $line); } //echo''; fclose($f); } } else { echo 'erreur lors de l\'ouverture du fichier !'; } thanks ...

« previous php.notes (#153621) next »