Home Tutorial Php Phpfiles PHP function rmdir and example

 
 

Share on Google+Share on Google+
PHP function rmdir and example
Posted on: October 30, 2009 at 12:00 AM
Advertisement
In this part of the tutorial we will learn about the function rmdir in context of file handling. And we will also see the example related to the rmdir function

Syntax for PHP rmdir() Function

bool rmdir(dir_name[,context])

rmdir() function is used to remove the empty directory
On failure it gives the false Boolean value


Example of PHP rmdir() Function

Source Code of PHP rmdir() Function
<?php

    $a
=rmdir("upload1");
    if
($a)
      echo
"directory is removed ";
    else
      echo
"cannot remove directory ";
?>

Output
directory is removed

Advertisement

Related Tags for PHP function rmdir and example :


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: October 30, 2009

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com