Gen. partnerAlgotech

PHP funkce scandir()

List files and directories inside the specified path

|
11. září 2019

Dostupnost ve verzích: PHP 5.0

List files and directories inside the specified path

Parametry

Parametr Datový typ Výchozí hodnota Poznámka
$directory string není The directory that will be scanned.
$sorting_order int null, By default, the sorted order is alphabetical in ascending order. If the optional sorting_order is set to non-zero, then the sort order is alphabetical in descending order.
$context resource null For a description of the context parameter, refer to the streams section of the manual.

array

an array of filenames on success, or false on failure. If directory is not a directory, then boolean false is returned, and an error of level E_WARNING is generated.

Další zdroje

Oficiální dokumentace funkce scandir

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.