php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #18293 mkdir does not give any explanation of mode parameter
Submitted: 2002-07-12 03:39 UTC Modified: 2003-01-03 14:13 UTC
From: phpbugs at priorwebsites dot com Assigned: nicos (profile)
Status: Closed Package: Documentation problem
PHP Version: 4.2.1 OS: Windows XP Home Edition
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: phpbugs at priorwebsites dot com
New email:
PHP Version: OS:

 

 [2002-07-12 03:39 UTC] phpbugs at priorwebsites dot com
The 'mkdir()' function documentation does not give any idea what the 'mode' value should take, nor any links to other parts of the documentation where 'mode' is explained.

Maybe it's a UNIX thing (I am from the Windows world - somebody has to do it)?  I had a search for mode, and could not find what I wanted.  In the end, for my code, I just stuck the value '0700' from the example and that seems to work.  But it's hardly a good way to code eh?

Please put some explanation of what mode is, and the possible values it can take, and what each of the values mean, either in the mkdir documentation (or if it exists clearly explained elsewhere in the PHP docs, then a link to that section).

Thanks for all the work you folks do!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-14 08:35 UTC] leblanc at somewhere dot com
on NT/windows... just put 0777
note that the 0 before is needed as it is octal ;)
 [2003-01-02 20:03 UTC] nicos@php.net
Assigned, nicos.
 [2003-01-03 14:03 UTC] nicos@php.net
It has been fixed and the documentation will be updated soon.


Thank for your report.
 [2003-01-03 14:04 UTC] derick@php.net
documentation is not sufficient, reopening
 [2003-01-03 14:13 UTC] nicos@php.net
Really fixed now.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 15:01:36 2025 UTC