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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 13:01:30 2024 UTC