Funkcje katalogu PHP
Wprowadzenie do katalogu PHP
Funkcje katalogów pozwalają na pobieranie informacji o katalogach i ich zawartości.
Instalacja
Funkcje katalogu PHP są częścią jądra PHP. Do korzystania z tych funkcji nie jest wymagana instalacja.
Funkcje katalogu PHP
Function | Description |
---|---|
chdir() | Changes the current directory |
chroot() | Changes the root directory |
closedir() | Closes a directory handle |
dir() | Returns an instance of the Directory class |
getcwd() | Returns the current working directory |
opendir() | Opens a directory handle |
readdir() | Returns an entry from a directory handle |
rewinddir() | Resets a directory handle |
scandir() | Returns an array of files and directories of a specified directory |