Gen. partnerAlgotech

PHP funkce file_exists()

Checks whether a file or directory exists

|
11. září 2019

Dostupnost ve verzích: PHP 4.0

Checks whether a file or directory exists

Parametry

Parametr Datový typ Výchozí hodnota Poznámka
$filename string není Path to the file or directory.

bool

true if the file or directory specified by filename exists; false otherwise.

This function will return false for symlinks pointing to non-existing files.

This function returns false for files inaccessible due to safe mode restrictions. However these files still can be included if they are located in safe_mode_include_dir.

The check is done using the real UID/GID instead of the effective one.

Další zdroje

Oficiální dokumentace funkce file-exists

Načítání komentářů...

Zůstaňte v obraze

Přihlaste se k odběru našeho newsletteru a získejte nejnovější informace o kybernetické bezpečnosti přímo do vaší e-mailové schránky.

Vaše údaje jsou v bezpečí. Newsletter můžete kdykoliv odhlásit.