rmdir

(PHP 3, PHP 4, PHP 5)

rmdir -- Removes directory

Description

bool rmdir ( string dirname [, resource context] )

Attempts to remove the directory named by dirname. The directory must be empty, and the relevant permissions must permit this. Zwraca TRUE w przypadku sukcesu, FALSE w przypadku porażki.

Notatka: As of PHP 5.0.0 rmdir() can also be used with some URL wrappers. Refer to Dodatek L for a listing of which wrappers support rmdir().

Notatka: Wsparcie dla kontekstów zostało dodane w PHP 5.0.0.

Notatka: Kiedy włączony jest tryb bezpieczny, PHP sprawdza czy katalog, na którym chcesz operować, ma takie same UID (owner) jak skrypt, który jest aktualnie wykonywany.

See also mkdir() and unlink().