> What's wrong with "chmod -R 700 /path/to/folder" ??
>
Once again I failed to outline my problem completely. Apologies.
You could use PHP's system() or exec() to execute the above shell command?
If PHP is running in safe mode (check with phpinfo()) then you can only
execute files in the safe_mode_exec_dir