Query: rmdir
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
RMDIR(3) 1 RMDIR(3) rmdir - Removes directorySYNOPSISbool rmdir (string $dirname, [resource $context])DESCRIPTIONAttempts to remove the directory named by $dirname. The directory must be empty, and the relevant permissions must permit this. A E_WARN- ING level error will be generated on failure.PARAMETERSo $dirname - Path to the directory. o $context - Note Context support was added with PHP 5.0.0. For a description of contexts, refer to "Streams".RETURN VALUESReturns TRUE on success or FALSE on failure.CHANGELOG+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.0.0 | | | | | | | As of PHP 5.0.0 rmdir(3) can also be used with | | | some URL wrappers. Refer to "Supported Protocols | | | and Wrappers" for a listing of which wrappers | | | support rmdir(3). | | | | +--------+---------------------------------------------------+EXAMPLESExample #1 rmdir(3) example <?php if (!is_dir('examples')) { mkdir('examples'); } rmdir('examples'); ?>NOTESNote When safe mode is enabled, PHP checks whether the directory in which the script is operating has the same UID (owner) as the script that is being executed.SEE ALSOis_dir(3), mkdir(3), unlink(3). PHP Documentation Group RMDIR(3)
Related Man Pages |
---|
rmdir(1) - suse |
unlink(3) - php |
rename(3) - php |
rmdir(1) - v7 |
rmdir(1) - xfree86 |