php FTP function

Hi, I need a simple php page that can open an ftp connection, download a files from a directory and upload it in the directory of another server. This example show how to upload a file from a server to the local computer but me I need to upload it in the directory of another server.


$ftp_server([[url removed, login to view]][1]);



$source_file="c:\arf\[url removed, login to view]"

$destination_file="\www\repertoire\[url removed, login to view]";

$conn_id = ftp_connect("$ftp_server");

$login_result = ftp_login($conn_id, "$ftp_user_name", "$ftp_user_pass");

if ((!$conn_id) || (!$login_result)) {

echo "La connexion FTP a échoué!";

echo "Tentative de connexion ? $ftp_server avec $ftp_user_name";


} else {

echo "Connecté ? $ftp_server, avec $ftp_user_name";


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

if (!$upload) {

echo "Le téléchargement Ftp a échoué!";

} else {

echo "Téléchargement de $source_file sur $ftp_server en $destination_file";




Thank you !

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

## Platform

IE mozilla

Habilidades: Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software

Veja mais: php program to upload files, le code, en engineering, web die, connexion, arf, file arf, test php page, php web ftp, open arf file, flv download open source, ftp source code, avec, ftp download working, php upload file local, web page local executable, download php ftp, echo file php, php echo file, code ftp, ftp simple, simple php form example, function download, php code function, download file ftp server

Acerca do Empregador:
( 98 comentários ) quebec, Canada

ID do Projeto: #2995763

Concedido a:


See private message.

$4 USD em 1 dia
(12 Comentários)

3 freelancers are bidding on average $8 for this job


See private message.

$12.75 USD em 1 dia
(123 Comentários)

See private message.

$8.5 USD em 1 dia
(3 Comentários)