Re: rename

From: Date: Mon, 20 Jun 2005 09:27:15 +0000
Subject: Re: rename
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-217210@lists.php.net to get a copy of this message
Well, why not first check for existance of the file then check if its able to write to the new location, do something like, if(!file_exists('/my/file/name')) { echo 'File does not exist'; } if(!is_writable('/my/new/file/name')) { echo 'Destination dir is not writable'; } then finally check if the actual file was renamed or not, what else would you need to check for? Mister Jack wrote:
Hi, I would like to know precisely what rename do in case of error. any link for that ? I do a : @rename($old, $new), what happens if I run out of space ? is the rename just an alias for C function library ? thanks


« previous php.general (#217210) next »