# \[php\] mkdir chmod problem

**URL:** <https://forum.kirupa.com/t/php-mkdir-chmod-problem/218061>\
**Category:** programming\
**Created:** [March 4, 2007, 7:12pm UTC](https://forum.kirupa.com/t/php-mkdir-chmod-problem/218061 "2007-03-04T19:12:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![this\_me](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/this_me/32/2683_2.png) [@this\_me](https://forum.kirupa.com/u/this_me)\
**Post date:** [March 4, 2007, 7:12pm UTC](https://forum.kirupa.com/t/php-mkdir-chmod-problem/218061/1 "2007-03-04T19:12:10Z")

</div>

i use this mkdir function code

$mkdir = mkdir ("/home/vhosts/mosquitocommunicatie.nl/httpdocs/klanten/" . $map, 0777);

but the problem is that instead of the given chmod of 0777 it gets the chmod of 0755

does someone know how thats possible??

gr Jos
