rmdir withour rmdir function.
| From: | Vincent M. | Date: | Tue, 18 Nov 2003 02:37:52 +0000 |
| Subject: | rmdir withour rmdir function. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-170048@lists.php.net to get a copy of this message | ||
Hello,
I can't use the function rmdir:
Warning: rmdir() has been disabled for security reasons
But I do need to delete a directory with php. How can I do ? Is there any way to delete an empty directory without using the rmdir function ?
I tried to use the unlink function on the directory, but It does not work, it only works for files...
Thanks,
Vincent.
PS: list of disabled functions:
get_current_user, php_uname, putenv, set_time_limit, getmyuid, getmypid, dl, mail, ini_alter, ini_restore, ini_set, exec, passthru, system, popen, leak, mysql_list_dbs, listen, chown, chmod, chgrp, diskfreespace, rmdir, realpath, tmpfile, link, imap_mail, email, mb_send_mail