我正在尝试使用PHP通过FTP连接到我的网络上的客户端:
$fileName = "jobfiles/jobfile-fileName.txt"; //local file created on web sever
$ftp_host = "7PD01-2012.networkname.local"; //networked client
// trying to transfer to shared folder PTBurnJobs
$ftp_user_name = "ryan@7PD01-2012.networkname.local";
$ftp_user_pass = "***"; //password is correct
$connect_it = ftp_connect($ftp_host);
$login_result = ftp_login($connect_it, $ftp_user_name, $ftp_user_pass);
$remote_file = "BurnJob.jrq";
$local_file = $fileName;
ftp_put($connect_it, $remote_file, $local_file, FTP_BINARY);
我没有收到此错误: ftp_login()期望参数1是资源,第145行/var/www/html/CDprinter/processor.php中给出的布尔值
所以我正在连接但未经过身份验证?