Same here with PHP 5.1.4. is_writable ignores my ACLs and also groups dont work sometimes.
![]() | is_writable说明bool is_writable ( string filename )如果文件存在并且可写则返回 TRUE。filename 参数可以是一个允许进行是否可写检查的目录名。 记住 PHP 也许只能以运行 webserver 的用户名(通常为 'nobody')来访问文件。不计入安全模式的限制。
See also is_readable(), file_exists(), and fwrite(). ![]()
f dot knodt at yotaweb dot de
25-May-2006 01:33
Same here with PHP 5.1.4. is_writable ignores my ACLs and also groups dont work sometimes.
Nils Kuebler
19-Apr-2006 06:15
this one recursivly checks if a folder and all its contents are writeable
greg at gregwhitescarver dotcalm
07-Feb-2006 10:55
In response to Darek:
darek at fauxaddress dot com
01-Feb-2006 02:27
It appears that is_writable() does not check full permissions of a file to determine whether the current user can write to it. For example, with Apache running as user 'www', and a member of the group 'wheel', is_writable() returns false on a file like
JimmyNighthawk
12-Sep-2005 05:02
Regarding you might recognize your files on your web contructed by your PHP-scripts are grouped as NOBODY you can avoid this problem by setting up an FTP-Connection ("ftp_connect", "ftp_raw", etc.) and use methods like "ftp_fput" to create these [instead of giving out rights so you can use the usual "unsecure" way]. This will give the files created not the GROUP NOBODY - it will give out the GROUP your FTP-Connection via your FTP-Program uses, too.
claude dot paroz at ne dot ch
06-Apr-2004 07:28
Under Windows, it only returns the read-only attribute status, not the actual permissions (ACL).
agrenier at assertex dot com
02-Apr-2004 08:56
This file_write() function will give $filename the write permission before writing $content to it. | ![]() | |