There are 7 values that can be returned. Here is a list of them and what each one means
block: block special device
char: character special device
dir: directory
fifo: FIFO (named pipe)
file: regular file
link: symbolic link
unknown: unknown file type
filetype
(PHP 4, PHP 5)
filetype — Zistí typ súboru
Popis
string filetype
( string $názovsúboru
)
Vráti typ súboru. Možné hodnoty sú fifo, char, dir, block, link, file, a unknown (neznámy).
Vráti FALSE, ak nastala chyba. filetype() vyvolá správu typu E_NOTICE, ak zlyhá volanie stat alebo ak typ súboru je unknown (neznámy).
Výsledky tejto funkcie sú cacheované. Bližšie informácie môžete nájsť pri funkcii clearstatcache().
Táto funkcia nepracuje so vzdialenými súbormi; súbor, ktorý má byť preskúmaný, musí byť prístupný cez súborový systém servera.
Pozri tiež is_dir(), is_file(), is_link(), file_exists() a stat().
filetype
ruach at chpc dot utah dot edu
10-Mar-2004 05:11
10-Mar-2004 05:11
