How to make directory within directory by php loop?

后端 未结 3 622
萌比男神i
萌比男神i 2021-01-29 14:53

How to make directory within directory by php loop?
Example: http://site_name/a/b/c/d
First create a then b within a then c within b then ....
Problem is here a

3条回答
  •  不思量自难忘°
    2021-01-29 15:25

    You can actually create nested folders with the mkdir PHP function

    mkdir($path, 0777, true); // the true value here = recursively
    

提交回复
热议问题