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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Mon Jan 27 12:01:24 2020 UTC