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) - suse
unlink(3) - php
rename(3) - php
rmdir(1) - v7
rmdir(1) - xfree86
Similar Topics in the Unix Linux Community
need examples?
Quick question...rmdir -l
PSFTP/PSCP: remotely deleting directory recursively
Is there any possibility of running the PHP script in a debug mode ?
What option will use for deleting directory with all its contents?