note 79769 added to function.ftp-rename

From: Date: Wed, 12 Dec 2007 03:25:36 +0000
Subject: note 79769 added to function.ftp-rename
Groups: php.notes 
Request: Send a blank email to php-notes+get-133381@lists.php.net to get a copy of this message
You want to make sure you check the existence of the new name before renaming files, because otherwise you could risk losing files. Just do a simple check with ftp_size with the new name. If it's !=-1, you're going to want to throw some kind of error, otherwise you'll be losing a file... ---- Server IP: 208.69.120.35 Probable Submitter: 71.231.179.166 ---- Manual Page -- http://www.php.net/manual/en/function.ftp-rename.php Edit -- https://master.php.net/note/edit/79769 Del: integrated -- https://master.php.net/note/delete/79769/integrated Del: useless -- https://master.php.net/note/delete/79769/useless Del: bad code -- https://master.php.net/note/delete/79769/bad+code Del: spam -- https://master.php.net/note/delete/79769/spam Del: non-english -- https://master.php.net/note/delete/79769/non-english Del: in docs -- https://master.php.net/note/delete/79769/in+docs Del: other reasons-- https://master.php.net/note/delete/79769 Reject -- https://master.php.net/note/reject/79769 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#133381) next »