I am working on a PHP FTP Upload Script, which so far only works if the target folder on my FTP Server has permission settings 775 or 777.
I need sth. like the following code (which I know should only work on files not folders) to remotely change folder permissions:
ftp_chmod ($connection, '0775', './');
The upload script is not intended for my own FTP Servers, but to push Data from my Server to my Clients FTP Servers.
Is there any way of setting the correct permissions on my side, to take that off of my clients shoulders?
Only if their FTP server is misconfigured. If it has been properly configured then you should already have write access. If you don’t, then you should never be able to grant it to yourself.