On Tue, 2004-02-24 at 13:32, Matt Palermo wrote: > Is there a way to check a folder on the server to make sure a specified > folder has write permissions? I'm writing an upload script, but I need to > make sure the user gave the destination directory write permissions before I > can copy the files to the new folder. Anyone got any ideas?
How about is_writable[1]? Just to throw it out there. My favorite, non-portable, hackish solution is `touch $dir`; :) [1] http://www.php.net/is_writable -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php