note 63317 added to function.copy

From: Date: Mon, 20 Mar 2006 03:56:21 +0000
Subject: note 63317 added to function.copy
Groups: php.notes 
Request: Send a blank email to php-notes+get-106083@lists.php.net to get a copy of this message
User tip... it can be completely befuddling if you don't realize your source and destination files are the same (this can happen with directory links). When this happens there are a couple of possibilities... at first I was using php 4.4.0 and the files just became 0 length. The second, outcome after I upgraded to 4.4.2 (since I didn't realize the problem) was that the copy function returned a failure. This was tricky to track since there's no error output indicating why the copy failed :) ---- Server IP: 216.235.15.211 Probable Submitter: 66.11.173.122 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.copy.php Edit -- http://master.php.net/note/edit/63317 Del: integrated -- http://master.php.net/note/delete/63317/integrated Del: useless -- http://master.php.net/note/delete/63317/useless Del: bad code -- http://master.php.net/note/delete/63317/bad+code Del: spam -- http://master.php.net/note/delete/63317/spam Del: non-english -- http://master.php.net/note/delete/63317/non-english Del: in docs -- http://master.php.net/note/delete/63317/in+docs Del: other reasons-- http://master.php.net/note/delete/63317 Reject -- http://master.php.net/note/reject/63317 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#106083) next »