php man page for rmdir

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 directory

SYNOPSIS
bool rmdir (string $dirname, [resource $context])
DESCRIPTION
Attempts 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.
PARAMETERS
o $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 VALUES
Returns 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). | | | | +--------+---------------------------------------------------+
EXAMPLES
Example #1 rmdir(3) example <?php if (!is_dir('examples')) { mkdir('examples'); } rmdir('examples'); ?>
NOTES
Note 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 ALSO
is_dir(3), mkdir(3), unlink(3). PHP Documentation Group RMDIR(3)
Related Man Pages
rmdir(1) - redhat
rmdir(1) - freebsd
rmdir(1) - x11r4
rmdir(3) - php
rmdir(1) - plan9
Similar Topics in the Unix Linux Community
Unix Equivalents to the following Dos Commands
Remove the date portion from file name
Practice using Unix and lack of knowledge
Simple sh called by PHP to create users HELP
What option will use for deleting directory with all its contents?