Home > Backend Development > PHP Tutorial > 递归的创建目录解决方法

递归的创建目录解决方法

WBOY
Release: 2016-06-13 12:56:17
Original
843 people have browsed it

递归的创建目录
session_save_path 可以约定session文件处于几层目录下,但需要预先创建这些目录。
例如 5;/tmp 创建的规则如下 

(\/[a-z0-9]){5}
Copy after login

即 /tmp/a/a/a/a/a ... /tmp/2/c/d/4/f ... /tmp/2/c/d/4/g ... /tmp/9/9/9/9/9
我想了好久也不知道该怎么做才好


------解决方案--------------------
为何需要递归?
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template