php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14788 mkdir
Submitted: 2002-01-01 05:06 UTC Modified: 2002-02-10 19:01 UTC
From: yangmx at bizcn dot com Assigned:
Status: Not a bug Package: *Directory/Filesystem functions
PHP Version: 4.0.6 OS: redhat 7.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: yangmx at bizcn dot com
New email:
PHP Version: OS:

 

 [2002-01-01 05:06 UTC] yangmx at bizcn dot com
in apache vhost:
mkdir(path, 0777);
but the directory's mod is 755

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-10 19:01 UTC] elixer@php.net
Try this:

<?php
    umask(000);
    mkdir($path, 0777);
?>

In other words, RTFM:
http://www.php.net/mkdir
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 10 12:01:27 2024 UTC