Have you set the right permissions ???
Georgia
Ado wrote:
<?php
$server="ftp.myserver.com";
$user="myuser";
$pass="mypass";
// Connect & login to FTP server
$ftp=ftp_connect($server) or die ("Problem with FTP server !");
$conn=ftp_login($ftp,$user,$pass) or die ("Problem logining on to FTP server");
$dir=ftp_pwd($ftp); // Stores current directory as $dir
$file=$dir."/uploaded/datafile.txt"; // name of file we want to upload
$localfile = "C:\testfile.txt";
$upload=ftp_put($ftp,$file,$localfile,FTP_ASCII) or die ("Problem with upload");
?>
RESULT : Warning: error opening
C:\datafile.txt in ......script name
Can anyone help ?
If tried replacing C:\ with C:/ and C:// and lots of other combinations !
Please Help