| Posted by John McClumpha on 06/18/42 11:32 
On Sun, 20 Nov 2005 08:21:28 GMT, \"@ <""mika(\"@)villafinn.net">wrote:
 
 >Problem is something like this. Some web applications written in php
 >change permissions of some files and directories so I can't remove them
 >if I don't change permissions to write those files and dir's. I can do
 >that by making a php file with code :
 >
 ><?php
 >chmod ("dir-or-file", 0777);
 >?>
 >
 >and send it to server and point browser to that file.After that I can
 >remove the file or directory but the problem is: sometimes there are
 >ten's maybe hundred's of files to change and remove.It take's a lifetime
 >to change permissions one by one so what is the code to change
 >permissions recursively to all subdirectories and files.
 
 not sure if it will work via PHP - but you can recursively chmod from
 a *nix shell using the -R switch...
 
 e.g. chmod -R 777 dir-or-file
 
 not sure - perhaps a similar thing can be done?
 
 --
 John McClumpha
 Darkness Reigns - http://www.incitegraphics.com.au/darkness/
  Navigation: [Reply to this message] |