php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30284 chmod function NOT work
Submitted: 2004-09-30 04:56 UTC Modified: 2004-09-30 10:00 UTC
From: ipiranha at gmail dot com Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.3.9 OS: FreeBSD 5.2.1-RELEASE
Private report: No CVE-ID: None
 [2004-09-30 04:56 UTC] 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. ^^/




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-30 10:00 UTC] derick@php.net
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.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC