PHP:
<?
$dirpath='Arend/35/';
if ($dir=opendir($dirpath))
{
while ($file=readdir($dir))
{
if (!strcmp('application/vnd.ms-excel',mime_content_type($dirpath.$file)))
{
print $file;
}
}
}
?>
Warning: mime_content_type(Arend/34/.): failed to open stream: Permission denied in c:\www\nakl.php on line 24
Warning: mime_magic: can't read `Arend/34/.' in c:\www\nakl.php on line 24
Warning: mime_content_type(Arend/34/..): failed to open stream: Permission denied in c:\www\nakl.php on line 24
Warning: mime_magic: can't read `Arend/34/..' in c:\www\nakl.php on line 24
я так понимаю не может сопоставить '.' типу?