bonjour j'utilse ce code pour lire un CSV

pouvez vous me dire la methode a employer pour ajouter ou supprimer des ligne dans ce csv en utilisant une unterface phP

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 
 
<html>
<head>
<title>Document sans titre</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
 
<body>
<table width="91%" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="35%">&nbsp;</td>
    <td width="39%">G</td>
    <td width="26%">G</td>
  </tr>
  <tr> 
   <?php 
$fichier = "fichier.csv";
$fic = fopen($fichier, 'rb');
for ($ligne = fgetcsv($fic, 1024); !feof($fic); $ligne = fgetcsv($fic, 1024)) {
?>
 
<tr> 
 <? $j = sizeof($ligne);
  for ($i = 0; $i < $j; $i++) { ?>
      <td> <input name="nom" type="text" value="<? echo $ligne[$i] ?> "  size="30"> </td>
	<? } ?>
</tr> 
	<? } ?>
  </tr>
  <tr> 
    <td>&nbsp;</td>
    <td>G</td>
    <td>G</td>
  </tr>
</table>
</body>
</html>
Merci pour votre aide