note 90455 added to function.fopen

From: Date: Thu, 23 Apr 2009 09:34:09 +0000
Subject: note 90455 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-153607@lists.php.net to get a copy of this message
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 ... ---- Server IP: 213.246.51.26 Probable Submitter: 213.190.82.36 ---- Manual Page -- http://www.php.net/manual/en/function.fopen.php Edit -- https://master.php.net/note/edit/90455 Del: integrated -- https://master.php.net/note/delete/90455/integrated Del: useless -- https://master.php.net/note/delete/90455/useless Del: bad code -- https://master.php.net/note/delete/90455/bad+code Del: spam -- https://master.php.net/note/delete/90455/spam Del: non-english -- https://master.php.net/note/delete/90455/non-english Del: in docs -- https://master.php.net/note/delete/90455/in+docs Del: other reasons-- https://master.php.net/note/delete/90455 Reject -- https://master.php.net/note/reject/90455 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#153607) next »