ftp_put not a regular files

hi all

I m trying to upload a file in a ftp and I retrieving this error

Connected on 70.84.124.229, with user name video

Warning: ftp_put(): /video/files/: Not a regular file in c:\program files\easyphp\www\www.video-excellence.be\script\send_file_rent.php on line 39
upload FTP failed!

I m using the function ftp_put

$conn_id = ftp_connect($ftp_server);

/* Identification */
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);

/* check connexion*/
if ((!$conn_id) || (!$login_result)) {
echo "connexion failed!
";
} else {
echo “Connected on $ftp_server, with user $ftp_user_name”;
}

/* upload files */
$destination_file = ‘/video/files/’;
$source_file = ‘location.txt’;

$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY);

/* upload check */
if (!$upload) {
echo “upload FTP failed!”;
} else {
echo “upload $source_file on $ftp_server on $destination_file”;
}

/* close connexion FTP */
ftp_close($conn_id);

I do not know what this error means as i m connected and that I get the source file ?

thanks to all
phoelis

Try

$upload = ftp_put($conn_id, $destination_file.$source_file, $source_file, FTP_BINARY);

The second parameter must point to a filename and not just a directory.

great thxs !!!