<html>
<head>
<title>mime_lookup() example #1</title>
</head>
<body bgcolor=white>
<h1>mime_lookup() example #1</h1>
<p>Print out sorted list of the MIME types for which we know one or more file
extensions.</p>
<p>You can <a href="example1.phps">view the source to this example</a>.</p>
<table border=1 cellspacing=0 cellpadding=2>
<tr><td>Extension</td><td>MIME type</td></tr>
<?
include("mime_lookup.php");
ksort($mime_types);
while(list($key,$val)=each($mime_types)) {
echo "<tr><td>$key</td><td>$val</td></tr>\n";
}
?>
</table>
</body>
</html>