
Vorrei recuperare dal mio serever tutti i mime supportati dai client che mi si collegano...
E' possibile farlo ???
Vorrei sapere se i client supportano un certo tipo di estensione, è possibile????
Grazias Francesco

Moderatore: Staff
Codice: Seleziona tutto
<hr>
<h1>$_SERVER['HTTP_USER_AGENT']</h1>
<br>
<?php echo $_SERVER['HTTP_USER_AGENT'] . "<br />"; ?>
<hr>
<h1>get_browser(null, true);</h1>
<br>
<?php
$browser = get_browser(null, true);
print "<table width=\"100%\" border=\"2\">";
foreach($browser as $key => $value)
{
print "<tr> <td> ".$key." </td> <td> ".$value." </tr>";
}
print "</table>";
?>
<hr>
<h1>navigator.mimeTypes</h1>
<br>
<script>
document.write("<table width=\"100%\" border=\"2\">");
for(i=0;i<navigator.mimeTypes.length;i++)
{
document.write("<tr> <td>");
document.write( navigator.mimeTypes[i].type );
document.write("</td> <td>");
document.write( navigator.mimeTypes[i].description );
document.write("</td> <td>");
document.write( navigator.mimeTypes[i].suffixes);
document.write("</td> </tr>");
}
document.write("</table>");
</script>