PHP mkdir( $recursive = true ) skips last directory

后端 未结 7 1960
南旧
南旧 2021-02-20 10:39

I\'ve got the following piece of code on a PHP 5.2.4 (no safe_mode) linux server:

mkdir( $path, 0777, true );

when I enter a path like:

<
7条回答
  •  自闭症患者
    2021-02-20 10:45

    If you tried everything and it keeps not working, then add some text in the end of the path like:

    $path = '/path/to/create/recur/ively/more/this_wont_be_created_anyway';
    

提交回复
热议问题