Safe_mode restrictions ignored means:
cant read by read() so is_readable() = false.
even if safe_mode_include_dir is set and include does works, is_readable() is false to. :(
(php5)
is_readable说明bool is_readable ( string filename )
如果由 记住 PHP 也许只能以运行 webserver 的用户名(通常为 'nobody')来访问文件。不计入安全模式的限制。
jascha t gmx dt com
07-Nov-2006 02:58
Safe_mode restrictions ignored means:
jo at durchholz dot org
30-Jan-2006 05:15
DrTebi at yahoo dot com is wrong. is_readable() checks whether you can do file_get_contents() or similar calls, no more, no less. If the location given returns a 500 or 403 error, you can still read() that (you'll simply get the error page), but it's still read()able. Using is_readable to check the validity of a URL is simply the wrong function.
DrTebi at yahoo dot com
13-Oct-2005 04:22
Be careful when using is_readable on symbolic links.
27-Jul-2005 02:08
Sometimes in situations where file_exists fails (returns false even though the file does exist) stat will work.
php dot 5 dot ce at spamgourmet dot com
12-Jan-2005 02:32
If you are using ACL, watch out for Bug #30931 (now open without any reaction for about 2 month, alltough an solution exists.)
takeda at takeda dot tk
07-Jun-2003 04:36
this function also can be used if you want check permissions for directory.
| |||