PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

flock> <filesize
Last updated: Sun, 25 Nov 2007

view this page in

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().



add a note add a note User Contributed Notes
filetype
ruach at chpc dot utah dot edu
10-Mar-2004 05:11
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

flock> <filesize
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites