note 79870 added to function.ftp-chmod
| From: | tiefenbrunner at obdev dot at | Date: | Mon, 17 Dec 2007 13:19:15 +0000 |
| Subject: | note 79870 added to function.ftp-chmod | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-133723@lists.php.net to get a copy of this message | ||
The "mode" parameter of the PHP5 ftp_chmod function is an integer value that is supposed
to be given as an octal number, like the argument for the "chmod" command line tool.
Thus the sprintf must use the %o formatting character, so that the passed integer value is really
represented as an octal number to the CHMOD site command for the FTP server.
So, IMHO, rabin's version is correct (it definitely worked for me).
----
Server IP: 193.190.198.20
Probable Submitter: 213.235.223.123
----
Manual Page -- http://www.php.net/manual/en/function.ftp-chmod.php
Edit -- https://master.php.net/note/edit/79870
Del: integrated -- https://master.php.net/note/delete/79870/integrated
Del: useless -- https://master.php.net/note/delete/79870/useless
Del: bad code -- https://master.php.net/note/delete/79870/bad+code
Del: spam -- https://master.php.net/note/delete/79870/spam
Del: non-english -- https://master.php.net/note/delete/79870/non-english
Del: in docs -- https://master.php.net/note/delete/79870/in+docs
Del: other reasons-- https://master.php.net/note/delete/79870
Reject -- https://master.php.net/note/reject/79870
Search -- https://master.php.net/manage/user-notes.php