gpt4 book ai didi

php - openbase_dir 和子目录

转载 作者:行者123 更新时间:2023-12-05 02:25:05 25 4
gpt4 key购买 nike

我将有许多子目录,例如。/home/a,/home/a/file,/home/a/txt,/home/b,/home/b/file,/home/b/txt 等

子目录是按需创建的。我需要将所有子目录添加到 open_basedir。

请问如何让open_basedir识别顶级路径的所有子目录?

最佳答案

来自 http://php.net/manual/en/ini.core.php#ini.open-basedir

The restriction specified with open_basedir is a directory name since PHP 5.2.16 and 5.3.4. Previous versions used it as a prefix. This means that "open_basedir = /dir/incl" also allowed access to "/dir/include" and "/dir/incls" if they exist. When you want to restrict access to only the specified directory, end with a slash. For example: open_basedir = /dir/incl/

/dir/incl/ = only the directory no subdirectories

dir/incl = all subdirectories

关于php - openbase_dir 和子目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5048648/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com