hi,
give some idea, how to delete directory in php. i know, how to delete file in the directory, but i didnot know, how to delete directory. please help to me.
thanks,
prabhu.
how delete directory
Moderator: General Moderators
Use a recursive deleting function, or loop through your directory and delete.
Or, probably not a good idea:
Or, probably not a good idea:
Code: Select all
exec('rm -r /path/to/dir');Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- xpgeek
- Forum Contributor
- Posts: 146
- Joined: Mon May 22, 2006 1:45 am
- Location: Kyiv, Ukraine
- Contact:
http://php.net/rmdir - delete the directory.
Directory must be empty.
Directory must be empty.