|
Posted by The Natural Philosopher on 01/07/08 18:30
jodleren wrote:
> While reading php.net I found
>
> " bool copy ( string $source , string $dest [, resource $context ] )
> Makes a copy of the file source to dest .
> If you wish to move a file, use the rename() function. "
>
> .... what? rename can move a file...?
Well it moves the directory entry, which amounts to the same thing,
unless its across a partition boundary, when it is smart enough to do a
copy instead.
Navigation:
[Reply to this message]
|