|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-05-14 20:01 UTC] tch at unixprogramming dot net
<? $basedir = "./mkdirtests/"; $newdir = "foo"; $fullpath = $basedir . $newdir; $lscmd = "/bin/ls -al $basedir"; ?> <p>Making directory "./foo" with a umask of 0000<br> <? $oldumask = umask(0000); mkdir ($fullpath, 0700); umask($oldumask); ?> <p>Listing <?="$lscmd"?>:<br> <pre> <? passthru( "$lscmd"); ?> </pre> PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 03:00:02 2025 UTC |
I have the same problem. mkdir second param doesnt work. <?PHP mkdir ("some",0777); ?> at posix, sure, will create "some" directory without 0777 chmod. So, I need do a chmod("some",0777).