|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1998-05-03 23:28 UTC] whit at transpect dot com
In changing a working script from php2 to php3, a
mkdir("$docroot/$pgfrom",755);
command, that used to make that directory 755 as requested, now ends up
with perms:
d-wxr----t
Then if I try to fix it with:
chmod("$docroot/$pgfrom",755); nothing happens.
However, chmod("$docroot/$pgfrom","755");
produces perms of: d-wxrw--wt
- which is still wrong. A definite problem since the next thing I want to
do is create a file in that directory.
This is with php-3.0RC4.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 02:00:01 2025 UTC |
This is the correct behavior. To pass an octal number to chmod (and other functions that deal with file permissions), you need to specify one, a la: chmod("$docroot/$pgfrom", 0755);