title: chmod 777 in php
body: <p>If I create a folder in php with mkdir() it has the www-data : www-data user and 755 permissions.</p>
  
  <p>The problem is I can't delete this folder with the ftp-user (zapbe:psasrv)
  I tried to modify the folder with chmod($path, "0777") in php but this doesn't work.</p>
  
  <p>How can I make the created folders and uploaded files readable / removeable for both the www-data and the ftp-user?</p>