|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-08-06 20:14 UTC] dpfender at innova dot net
At the document root of a web page, create a directory ab using mkdir("ab").
Then create directory ab/cd using mkdir("ab/cd").
Using rmdir("ab/cd") fails to remove directory ab/cd which contains no files.
The binary distribution files were used without modification.
In php.ini, the following changes were made to php.ini-dist:
short_open_tag = Off
extension=php_calendar.dll
extension=php_ldap.dll
extension=php_exif.dll
extension=php_ftp.dll
extension=php_imap.dll
extension=php_mssql70.dll
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 11:00:02 2025 UTC |
user-feedback: The following code demonstrates the problem on my system <HTML> <HEAD> <TITLE>dir test pgm</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080"> <?php $dir_name = "testdir"; $mk_ret_code = 0; $rm_ret_code = 0; $mk_ret_code = mkdir($dir_name, 0775); echo ("mkdir('${dir_name}', 0775), ret_code = '${mk_ret_code}'<br><br>\n"); $mk_ret_code = rmdir($dir_name); echo ("rmdir('${dir_name}'), ret_code = '${rm_ret_code}'<br><br>\n"); // attempt to clean up directory with exec() exec("rmdir ${dir_name}"); ?> </BODY> </HTML> Response: mkdir('testdir', 0775), ret_code = '1' Warning: RmDir failed (No such file or directory) in E:\Inetpub\wwwroot\dir_chk\dir_test.php on line 12 rmdir('testdir'), ret_code = '0'