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
| <?php
$CLTP1 = "CLTP1.csv";
$p1 = fopen($CLTP1, 'rb');
$CLTP2 = "CLTP2.csv";
$p2 = fopen($CLTP2, 'rb');
echo "<table border=1>";
for ($ligne = fgetcsv($p1, 1024, ","); !feof($p1); $ligne = fgetcsv($p1, 1024, ",")) {
array_pop($ligne);
echo '<tr>';
$j = sizeof($ligne);
for ($i = 0; $i < $j; $i++) {
echo "<td>$ligne[$i]</td>";
}
echo "</tr>";
}
for ($ligne = fgetcsv($p2, 1024, ","); !feof($p2); $ligne = fgetcsv($p2, 1024, ",")) {
array_pop($ligne);
echo '<tr>';
$j = sizeof($ligne);
for ($i = 0; $i < $j; $i++) {
echo "<td>$ligne[$i]</td>";
}
echo "</tr>";
}
echo "</table>\n";
?> |
Partager