$local = 'WP_Inv.csv';
$remote = 'WP_Inv.csv';
$user = "User861";
$pass = "topsecret";
$host = 'ftp.server.com';
$port = '21';
$timeout = '90';
$type = FTP_ASCII;
$conn_id = ftp_connect($host,$port,$timeout);
$login = ftp_login($conn_id, $user, $pass);
ftp_put($conn_id, $remote, $local, $type);
从 shell 运行时返回以下错误:
最后一行显示错误,任何帮助都会很棒,我正在拔头发!
PHP 警告:ftp_put():服务器不能接受参数。
(是的,我稍后在代码中关闭了我的连接)