Ruprecht, I've experienced this problem, its that you need to turn ftp_pasv on. ftp_pasv($connection_id,true); That should take care of it, don't' worry about anything else. Michael Scappa Lead Developer Verve Internet Solutions > for higher education -----Original Message----- From: Ruprecht Helms [mailto:rhelms@mayn.de] Sent: Sunday, October 05, 2003 5:16 AM To: php-db@lists.php.net Subject: Trouble with uploading a file via ftp_put Hi, by uploading a file via the ftp_put-command the upload is not done properly. Result is I have a file in the destinationdirectory but 0 bit in size, only the filename is transfered. How have I to write the script that the file I want upload should be uploaded within the correct size. The actual script you can see here. [code] $conn_id=ftp_connect('62.241.50.14'); ftp_login($conn_id,'<user>','<password>'); echo "Current directory : ", ftp_pwd($conn_id), "\n"; ftp_chdir($conn_id,"html"); echo "Current directory is now : ", ftp_pwd($conn_id), "\n"; $dstdir="html"; $upload=ftp_put($conn_id,$bild,$dstdir."/".$bild,FTP_BINARY); [/code] Regards, Ruprecht -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php