web 2.0

How to use PHP & Delete/Remove Directory

How to use PHP & Delete/Remove Folder Learn how to use the PHP to Delete/Remove Folder on web site

ShotDev Focus:
- PHP & Delete/Remove Directory

Example

php_delete_folder.php


<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<?
$flgDelete = rmdir("shotdev");
if($flgDelete)
{
echo "Folder deleted.";
}
else
{
echo "Cannot delete folder.";
}
?>
</body>
</html>

Create a php file and save to path root-path/myphp/

Run
http://localhost/myphp/php_delete_folder.php

Screenshot

PHP Delete/Remove Folder
.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.