You are here: Re: Moving files « PHP Language « IT news, forums, messages
Re: Moving files

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация