Suite, errata et compléments. J'avais oubliées des choses.
http://validator.w3.org/ hurle quand les images n'ont pas de d'attribut alt.
diff -u ecrire/img_pack/index.php3
--- ecrire/img_pack/index.php3 Mon Oct 18 22:11:54 2004
+++ ecrire/img_pack/index.php3 Tue Oct 19 18:04:28 2004
@@ -1,17 +1,19 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
-<title>Index of img_pack</title>
+ <title>Index of img_pack</title>
+ <link rel="up" href="../">
+</head>
<body>
-<h1>Index of img_pack</h1>
-<table>
+ <h1>Index of img_pack</h1>
+ <table>
<?php
$myDir = opendir('.');
while($file = readdir($myDir)) {
if (ereg("(.+)\.(png|gif)$", $file, $match))
- echo "<tr><td>$file<td><img src=$file>\n";
+ echo " <tr><td>$file</td><td><img src='$file' alt='$file'></td></tr>\n";
}
?>
-</table>
+ </table>
</body>
</html>