Trouble with uploading a file via ftp_put

From: Date: Sun, 05 Oct 2003 09:15:49 +0000
Subject: Trouble with uploading a file via ftp_put
Groups: php.db 
Request: Send a blank email to php-db+get-30839@lists.php.net to get a copy of this message
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

« previous php.db (#30839) next »