Hi,
I have a problem with ftp_put(). I works great unless there are spaces in the path of the sourcefile.
$source_file = 'C:\temp\DSC01465.jpg';
//--------- No problem---------
$source_file = 'C:\Documents and Settings\DSC01465.jpg';
//---Warning: ftp_put(): error opening C:\Documents and Settings\DSC01465.jpg
$destination_file = "img/new.jpg";
$conn_id = ftp_connect($ftp_server);
ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY);
ftp_close($conn_id);
Should I replace the spaces with something?
Thnx,
Jody