You are here: Re: rename « PHP « IT news, forums, messages
Re: rename

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация