You are here: Re: changing permissions « PHP Programming Language « IT news, forums, messages
Re: changing permissions

Posted by John McClumpha on 11/01/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация