title: php ftp_get local user
body: <p>I'm downloading files from a remote ftp location using php <code>ftp_get()</code> function. Downloading and saving the file is done perfectly, but the file is saved on the local server with different user rights.</p>
  
  <p>Looking at the files, all files uploaded by FTP get the user of the site profile. But files downloaded by a script (executed through a browser) get the user <code>apache</code>.</p>
  
  <p>So at a later stage, a cronjob, who is a different user (site user) can't access these files. Because it has no permission.</p>
  
  <p>So how could u I save the file using <code>ftp_get()</code> with the correct user and group?</p>