chown and chmod

    Date: 03/09/05 (PHP Community)    Keywords: php, apache

    I'm using a script to upload files to my system. That means the files are created by Apache, and I can't access them with my FTP/SSH login. I need to back up the files uploaded, and mirror them.

    So, what I'm looking for is a simple (php) script to recursively chown, chgrp and chmod the files and folders on a given path.

    Yes, it's easy, and yes I could write it myself. But, I don't have time to do it tonight, and it's the kind of thing loads of people have hanging around, so if anyone has code they can 'lend' me to do the job that I can just run in the morning, that'd be great.

    Cheers.

    Source: http://www.livejournal.com/community/php/271272.html

« jpeg / pjpeg || php4 class extending and... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home