|
Posted by JamesBenson on 06/20/05 12:27
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
Navigation:
[Reply to this message]
|