Posted by Vince Morgan on 09/28/26 11:58
<nostic@gmail.com> wrote in message
news:1158162764.534963.31440@d34g2000cwd.googlegroups.com...
> Thanks for the Reply!
> <?php
> $file = '../template/index.php';
> $newfile = '/' $user '/home/';
>
> if (!copy($file, $newfile)) {
> echo "failed to copy $file...\n";
> }
> ?>
>
You need a file name to write to. If it doesn't exist already it will be
created automaticaly.
$destFile = '/'.$user.'/home/filename.ext';
The destination path needs to be qualified with a filename.
HTH
Vince Morgan
Navigation:
[Reply to this message]
|