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
 [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-2019 The PHP Group
All rights reserved.
Last updated: Mon May 27 03:01:26 2019 UTC