|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-03-31 15:41 UTC] cbelin at free dot fr
Description: ------------ What is the purpose of the 'recursive' parameter of the 'mkdir' function ? I expected that it allow to create a directory structure recursively but it doesn't seem to work ! PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 11:00:02 2025 UTC |
Here is a simple example of the "bug" : <?php mkdir("toto/tata/titi/tutu", 0777, true); ?> It outputs : Warning: mkdir() [function.mkdir]: No such file or directory in D:\Serveur Web\...\toto.php on line 2 Instead, I must use successive mkdir() calls : <?php mkdir("toto", 0777); chdir("toto"); mkdir("tata", 0777); chdir("tata"); mkdir("titi", 0777); chdir("titi"); mkdir("tutu", 0777); ?>