title: mkdir(folder_name) with 755 permission in php
body: <p>I have my web application hosted in <strong>/var/www</strong> folder. I am creating a folder from one of the PHP scripts of the web application. The default permission of the created folder is <code>drwx------</code>, i.e. 700. But I want that folder to have at least 755 permission. </p>
  
  <p>Up to now I tried:  <code>mkdir($path, 0755)</code> and <code>chmod($path, 0755)</code> PHP functions but without any success. </p>
  
  <p>Does anybody know how to solve my problem please?</p>
  
  <p>Millions of thanks beforehand. </p>