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. Returnează TRUE în caz de succes, FALSE în caz contrar.

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

Notã: The context parameter was added as of PHP 5.0.0.

Notã: Când este activat safe-mode, PHP verifică dacă directorul în care sînteți pe cale să lucrați are același UID ca scriptul care se execută.

See also mkdir() and unlink().