#30284 [Opn->Bgs]: chmod function NOT work
| From: | derick@php.net | Date: | Thu, 30 Sep 2004 08:00:19 +0000 |
| Subject: | #30284 [Opn->Bgs]: chmod function NOT work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-66919@lists.php.net to get a copy of this message | ||
ID: 30284
Updated by: derick@php.net
Reported By: ipiranha at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: FreeBSD 5.2.1-RELEASE
PHP Version: 4.3.9
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
.
Previous Comments:
------------------------------------------------------------------------
[2004-09-30 04:56:34] ipiranha at gmail dot com
Description:
------------
my freebsd box php chmod function not work.
chmod ("$upload_file_name", "0777");
NOT work.
# ls -al
-rw-r--r-- 1 nobody nobody 159744 Sep 30 11:42 test1.txt
So I was modify my source code
ex)
exec("chmod 0777 $upload_file_name");
# ls -al
-rwxrwxrwx 1 nobody nobody 159744 Sep 30 11:44 test2.txt
GOOD work.
So Oops.
chmod ("$upload_file_name", 0777); -> not work.
chmod ($upload_file_name, 0777); -> GOOD work.
why ?
check this. ^^/
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30284&edit=1