【发布时间】:2014-02-21 00:39:44
【问题描述】:
我在使用 PHPass (http://www.openwall.com/phpass/) 时收到以下警告:
open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s)
虽然这不是一个大问题(它会依赖于其他东西),但我不希望有这个警告。 PHP 应用程序应该在不同的服务器上运行,一些用户将能够将该路径添加到他们允许的 open_basedir 路径中,但其他用户将无权访问该配置。
我的第一个猜测是使用 is_readable() 检查可读性,但是,我仍然收到警告。
问题:如何检查某个路径或文件是否已添加到 open_basedir 路径中?
【问题讨论】:
标签: php open-basedir phpass