Trouble with uploading a file via ftp_put

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux