Re: Make sure folder is writable

From: Date: Tue, 24 Feb 2004 19:23:27 +0000
Subject: Re: Make sure folder is writable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178768@lists.php.net to get a copy of this message
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 adam@bregenzer.net http://adam.bregenzer.net/

« previous php.general (#178768) next »