closedir

(PHP 3, PHP 4, PHP 5)

closedir -- Освободить дескриптор каталога

Описание

void closedir ( resource dir_handle )

Закрывает поток, связанный с каталогом и переданный в качестве параметра дескриптор_каталога. Перед использованием данной функции, поток должен быть открыт с помощью функции opendir().



closedir
foo at bar dot com
24-Nov-2000 10:35
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).

<dirgetcwd>
 Last updated: Mon, 14 Nov 2005