We can comment it.
Yes, it will work if your server run scripts as CGI application (where scripts run as ftp user), so, in this case owners of script and files will same, and yes, this change permissions
But, many hosts run scripts as apache handle (world, nobody is owner), so your script can`t work here,
Just now I check your script at such host .. and - it give me - failed at all positions, all just because owners not same,
Script was run as 'nobody', but owner was my account member see more ('andrey' for example).
Hope now you understand this.
So we, as company, must provide something that will work anywhere, .. possible we include shell php file in our installs to apply permissions (chmods) under shell (SSH) , that was sure that it was run under account member
andreyP is the user is using a shared host that is not setup to run the dolphin script, then this could be true. however, in going by the developers own server requirements, this would never present itself as a problem. and a script running as nobody. the instance you speak of this server could and should on a shared environment be minimum SUPHPexec and that would alleviate what you are saying. so you tried on one server that was not configured to run dolphin. i have used this scirpt on 150+ servers, see more and found one problem only once.
We can comment it.
Yes, it will work if your server run scripts as CGI application (where scripts run as ftp user), so, in this case owners of script and files will same, and yes, this change permissions
But, many hosts run scripts as apache handle (world, nobody is owner), so your script can`t work here,
Just now I check your script at such host .. and - it give me - failed at all positions, all just because owners not same,
Script was run as 'nobody', but owner was my account member see more