DirectoryIterator::getType

(no version information, might be only in CVS)

DirectoryIterator::getType --  Get file type

Description

string DirectoryIterator::getType ( void )

Внимание

К настоящему времени эта функция еще не была документирована; для ознакомления доступен только список аргументов.



DirectoryIterator::getType
boards at gmail dot com
09-Apr-2006 09:09
Note that this function returns the file type (e.g. "file", "dir", etc.) and not the MIME type.  To do that, you might want to use this:
<?php
for
(
 
$dir = new DirectoryIterator('/some/directory');
 
$dir->valid();
 
$dir->next()
)
{
 
$mime = mime_content_type($dir->getPathname());
}
?>

<DirectoryIterator::getSizeDirectoryIterator::isDir>
 Last updated: Tue, 15 Nov 2005