|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1998-03-13 12:08 UTC] glauche at plum dot de
Hi, not really a bug, but you should state clearly that you need to specify a decimal value of the rights to chmod. so chmod(<file>,0755) (using octal) like in PHP 2.0 does not work anymore. In what form do you edit your help pages ? I use php quite frequent, and wanna write down my "experiences" somtimes .. :) regards, Michael Glauche PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 22:00:01 2025 UTC |
chmod($file, 0755) works perfectly. chmod($file, "0755") doesn't automatically convert to octal as happened in PHP/FI. You need to do chmod($file, octdec("0755")). (Note that any input coming from an SQL database or form is encoded as a string.)