|
closedir
Close directory handle
(PHP 4, PHP 5)
Example 505. closedir() example<?php Related Examples ( Source code ) » closedir Examples ( Source code ) » Creating and Destroying a Directory Handle Examples ( Source code ) » Listing the Contents of a Directory with readdir() Examples ( Source code ) » Calculate the size for a directory Examples ( Source code ) » readdir Examples ( Source code ) » Print all files under a directory Examples ( Source code ) » Read the content from a directory Examples ( Source code ) » Reading Contents from a Directory Examples ( Source code ) » Define recursive function to delete directories Examples ( Source code ) » Create a swf slideshow Code Examples / Notes » closedirfoo
About deleting a directory after doing a readdir/closedir on it... I'm not sure if this is the solution, but you could try to chdir("/"); before the rmdir to make absolutely sure you aren't standing in the directory (i.e trying to pull out the rug from under yourself).
|