|
Posted by paddy_nyr on 09/14/05 20:48
<romain.jouin@gmail.com> wrote in message
news:1126719265.188252.37560@o13g2000cwo.googlegroups.com...
> hi,
> Do you have the rights to write on C:\temp ? Do your process have this
> right ?
>
> The ftp_get function propose to give the loacl path where to put the
> distant file, can't you directly indicate C:\temp ?
>
> what code do you use ? what machines ? what OS ?
>
> need more info.
> JR.
>
Yes, I do have rights to c:\temp and the OS is Windows XP Professional
Here's the code:
$local_file = 'c:\temp\test.sqr';
$server_file = 'sirs_std_bmkdetl.sqr';
if (ftp_get($con, $local_file, $server_file, FTP_BINARY)) {
echo "Successfully written to $local_file\n";
} else {
echo "There was a problem\n";
}
I also tried without any luck.
$file = 'test.sqr';
$newfile = 'c:\temp\copytest.sqr';
if (!copy($file, $newfile)) {
echo "failed to copy $file...\n";
}
else {
echo "Copy is OKJ $file...\n";
}
Navigation:
[Reply to this message]
|