title: php mkdir() and apache ownership issue
body: <p><strong>PROBLEM</strong></p>
  
  <p>I'm trying to upload files to my own server via PHP. If folder doesn't exist, first I attempt to create the folders;</p>
  
  <pre><code>mkdir($folder, 0700);
  </code></pre>
  
  <p>My script is creating the folders but apache is the owner of the folder (and file) so I can't access the file which I uploaded.</p>
  
  <p>I have safe_mode off in my server. I still couldn't find a way around for this one.</p>
  
  <p>I would be glad if anyone could help me out with this one.</p>
  
  <p><strong>NOTE:</strong>
  I tried 0755, 0777 doesn't change anything. Apache is owner of the folder created.</p>