php - Copy file without creating target file -
i want copy file 1 place without knowing target file exists or not.
i'm using:
<?php $source = 'user/temp/details.txt'; //this file exists. $target = 'user/'.$user_name.'/details.txt'; //this file don't exists. copy($source, $target); ?>
but saying:
warning: copy() [function.copy]: filename cannot empty in c:\apache2.2\htdocs\account.php on line 3
Comments
Post a Comment