Re: rename

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux