Bonjour à tous
si je lance ce programme
( tout simple ) en local : tout va bien
<HTML><HEAD>
<TITLE>Affichage Demandes Thêmes Astrologiques</TITLE>
</HEAD>
<BODY>
<?php
$fic= fopen("../predictions/Astrologie/Demandes.txt","r");
?><table border=4>
<tr><th>Titre</th>
<th>Prénom</th>
<th>Nom</th>
<th>Adresse</th>
<th>Code Postal</th>
<th>Ville/th>
<th>Naissance : Jour</th>
<th>Mois</th>
<th>An</th>
<th>Heure</th>
<th>Minutes</th>
<th>Lieu</th>
<th>Latitude</th>
<th>E/O</th>
<th>Longitude</th>
<th>N/S</th>
<th>Mail</th></tr>
<?php
$zones=Array();
while (!feof($fic))
{ $lu=@fgets($fic);
$zones=explode("\\t",$lu);
?>
<tr>
<? for ($n=0;$n<count($zones);$n++)
{ ?> <td><?php echo $zones[$n];?></td> <? }
?>
</tr>
<?php
}
?></table><?php
fclose($fic);
?>
</BODY></HTML>
il me génére ( avec un seul enrgt
dans le fichier pour l'exemple )
<HTML>
<HEAD>
<TITLE>Affichage Demandes Thêmes Astrologiques</TITLE>
</HEAD>
<BODY>
<table border=4>
<tr><th>Titre</th>
<th>Prénom</th>
<th>Nom</th>
<th>Adresse</th>
<th>Code Postal</th>
<th>Ville/th>
<th>Naissance : Jour</th>
<th>Mois</th>
<th>An</th>
<th>Heure</th>
<th>Minutes</th>
<th>Lieu</th>
<th>Latitude</th>
<th>E/O</th>
<th>Longitude</th>
<th>N/S</th>
<th>Mail</th></tr>
<tr>
<td>Monsieur</td> <td>marcel</td> <td>Bultez</td> <td>chez bénard</td> <td>86400</td> <td>CIVRAY</td> <td>23</td> <td>01</td> <td>1947</td> <td>11</td> <td>15</td> <td>Waziers</td> <td></td> <td></td> <td></td> <td></td> <td>marcel.bultez@tiscali.fr</td> </tr>
</table></BODY></HTML>
c'est ce que je veux
si je le lance sur le site où il doit être : j'ai une erreur
<b>Warning</b>: Wrong parameter count for fgets() in <b>initial/adta.php</b> on line <b>29</b><br>
effectivement je ne donne pas la taille à lire
je veux lire jusqu'à CRLF
si je donne un nombre d'octets, c'est ce nombre
d'octets qui va être lus. ça ne m'arrange pas.
pouvez-vous m'expliquer quelle bévue je fais ?
d'avance merci
Cordialement. Bul.