ftpbuf 0 mangler i en linie
jeg får at vide at jeg mangler ftpbuf 0 i denne nedenstående linie.$login_result = ftp_login($conn_id, "$ftp_brugernavn", "$ftp_password");
her er mit script
//////////////////////
<?PHP
$ftp_hostname = $_POST['ftp_hostname'];
$ftp_brugernavn = $_POST['ftp_brugernavn'];
$ftp_password = $_POST['ftp_password'];
$ftp_port = 21;
$ftp_timeout = 200;
ftp_connect($ftp_hostname, $ftp_port);
$login_result = ftp_login($conn_id, "$ftp_brugernavn", "$ftp_password");
if ((!$conn_id) || (!$login_result)) {
echo "ftp connect has failed";
echo "attemped to connect to $ftp_hostname for user $_ftp_brugernavn";
die;
} else {
echo "you are connected to $ftp_hostname with username $ftp_brugernavn";
}
$upload = ftp_put($conn_id, "$destination_file", "$source_file", FTP_BINARY);
if (!$upload) {
echo "upload has failed";
} else {
echo "uploaded $source_file to $ftp_hostname as $destination_file";
}
ftp_quit($conn_id);
?>
////////////////////////////////////////////
er der nogen der ved hvorfor og hvad ftpbuf 0 betyder?
På forhånd tak
//krydset
